I am having issues developing a new Bedrock theme. I have followed the tutorial here
But it doesn’t work. Everything compiles completely fine but I get the error Uncaught ReferenceError: bootstrap is not defined in the javascript console when I load my site.
Is there something I am doing wrong? I have looked at the source code repository for the tutorial and everything matches to what I have done it just will not work.
Bootstrap v5.3.3 is shown in the node_modules of my project along with @concretecms/bedrock version 1.6.2.
Node version is 22.18.0 and NPM is version 10.9.3. I am running everything on MacOS Sequoia on Apple Silicon.
I am at a complete loss as to why I am getting this error. I have tried deleting the project directory and restarting but it just results in the same error.
I have even tried cloning the Flintstone repository and installing that and it produces the exact same error message. Again, everything compiles fine, I install the theme then return to the web site. Completely white page with the console showing the error Uncaught ReferenceError: bootstrap is not defined.
I would appreciate any help with resolving this very frustrating issue. Thank you.
Yes I have both of those lines in the JS and SCSS files.
Bootstrap CSS is included in the compiled main.css file.
It just doesn’t work in ConcreteCMS. I’m wondering if its the way I’ve installed ConcreteCMS. I installed it by downloading and extracting the ZIP file from the web site and haven’t done it via the composer method. Could that be the issue as I have noticed when I added a topic tree when I cancelled it to begin with I got a page not found and am wondering if there is an issue with the ZIP file.