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()

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


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

    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.