Bedrock Issue, It doesn't make sense

So i have followed this many times

I follow all the steps

All good it compiles.

Now in the past I have had this in page_theme.php

public function registerAssets()
    {
       $this->requireAsset('bootstrap');
    }

but I presume that the bedrock provides this so I removed it.

THIS IS WHERE ALL MY ISSUE STARTED.

I compile my JS and a get an error message

ReferenceError: bootstrap is not defined

So in my packages.json I added bootstrap

  "dependencies": {
    "@concretecms/bedrock": "^1.5.0",
    "bootstrap": "^5.3.3",
    "laravel-mix": "^6.0.49"
  },

but the only way to get it to work was to remove bootstrap from the webmix

mix.webpackConfig({
    externals: {
        jquery: 'jQuery',
        //bootstrap: true,
        //vue: 'Vue',
        moment: 'moment'
    },
});

My my question is WHAT am i doing wrong. It seems If i follow the docs to the letter I bootstrap doesn’t get added.

Hi there,

We’ll take a look at that doc to make sure it’s accurate - in the meantime I would recommend making sure you have pulled the latest version of Bedrock as sometimes having an older version can cause issues.

Did you resolve this issue as I’m experiencing it too and could do with some insight into this.

I have noticed though that when I create the development directory if I dont create a package.json file first then all node modules are installed into my home directory and not my project directory. The tutorial does not mention doing this and just gets you to run

npm i @concretecms/bedrock

in the project directory. The same happens with installing laravel-mix.

This caused my hours of headaches until I found a post about it on another forum.

The version of bedrock I have installed is v1.6.2

Bedrock seems to compile perfectly fine but when run on the site I get the error Uncaught ReferenceError: bootstrap is not defined at 186. I can see that jQuery is loaded fine from the concrete core but bootstrap is nowhere to be found.

I cannot seem to get past this error. Nothing I do fixes it.

My ConcreteCMS details are as follows:

# Concrete Version
Core Version - 9.4.3
Version Installed - 9.4.3
Database Version - 20250227155410

I am running Node v22.18.0 and NPM version 10.9.3 on MacOS Sequoia Version 15.6.1 (24G90).

The PHP version on the server is v8.0.30.

Is there something I am missing?