bootstrap3 icon indicating copy to clipboard operation
bootstrap3 copied to clipboard

Not recognizing bootstrap-settings.json at runtime

Open ecarlotti opened this issue 7 years ago • 2 comments

I have a project correctly setup as instructed - During the build phase, the plugin detects the client/bootstrap-settings.json file and correctly populates it. On the client, however, I get a warning message on the console saying "Bootstrap disabled. Create a file named 'bootstrap-settings.json' to enable.".

I don't really know what to do in this situation, as the build phase is occurring (apparently) ok. Does anyone have any idea of what could be happening?

Thanks in advance, /Edson Carlotti

ecarlotti avatar Aug 10 '18 14:08 ecarlotti

Correction: Bootstrap CSS files are being generated and I can locate them in the generated APP. Bootstrap JS files is what I'm unable to find and that is the main reason why my application is failing to run.

ecarlotti avatar Aug 10 '18 15:08 ecarlotti

I forced the initialization of the JavaScript library by configuring the explicitly setting the Javascript expose setting to TRUE and adding an explicit import of the generated JavaScript library in my project's client main code (e.g. import './stylesheets/bootstrap.js'). After doing this, I still get the console message telling me that Bootstrap is disabled (because the default initialization is not working) but I get Bootstrap running OK.

ecarlotti avatar Aug 13 '18 12:08 ecarlotti