Uncaught SyntaxError: Unexpected token export - popper.js error
Uncaught SyntaxError: Unexpected token export - popper.js error
Angular 给出错误: popper.js in bootstrap 4 给出 SyntaxError Unexpected token export
我从浏览器控制台收到此错误。
我什至更改了 popper.min.js 位置参考但没有用..
node_modules/popper.js/dist/umd/popper.min.js
node_modules/popper.js/dist/ems/popper.min.js
Angular.json
"scripts": [
"node_modules/bootstrap/dist/js/bootstrap.min.js",
"node_modules/jquery/dist/jquery.slim.min.js",
"node_modules/popper.js/dist/popper.min.js"
]
Bootstrap.min.js 依赖于 popper.min.js ,改变顺序如下,
"scripts": [
"node_modules/jquery/dist/jquery.slim.min.js",
"node_modules/popper.js/dist/popper.min.js",
"node_modules/bootstrap/dist/js/bootstrap.min.js",
]
Angular 给出错误: popper.js in bootstrap 4 给出 SyntaxError Unexpected token export
我从浏览器控制台收到此错误。
我什至更改了 popper.min.js 位置参考但没有用..
node_modules/popper.js/dist/umd/popper.min.js
node_modules/popper.js/dist/ems/popper.min.js
Angular.json
"scripts": [
"node_modules/bootstrap/dist/js/bootstrap.min.js",
"node_modules/jquery/dist/jquery.slim.min.js",
"node_modules/popper.js/dist/popper.min.js"
]
Bootstrap.min.js 依赖于 popper.min.js ,改变顺序如下,
"scripts": [
"node_modules/jquery/dist/jquery.slim.min.js",
"node_modules/popper.js/dist/popper.min.js",
"node_modules/bootstrap/dist/js/bootstrap.min.js",
]