Bootstrap 4 requiring separate jQuery plugins - Unused ReferenceError: Util not defined

Bootstrap 4 alpha. Created a modal file, referencing individual files, in this case util.js and modal.js. When opening a modality, this eliminates this exception.

Untrained ReferenceError: Util not defined

See fidle: https://fiddle.jshell.net/bhjk6tg4/

The updated script, I received it, it turned out that you need to import "util.js" first.

Note. I can not find the CDN for bootstrap 4 alpha-separate files, so I copied the raw javascript file from modal.js and pasted it into the script (javascript).

+4
source share
1 answer

, , UMD v4.0.0-alpha.3. , :

UMD CommonJS.

/ (AMD + requirejs, CommonJS + browserify ..) , UMD .

JS- Bootstrap JS /dist.

+2

Source: https://habr.com/ru/post/1654243/


All Articles