[英]Uncaught SyntaxError: Unexpected token export - popper.js error
Angular is giving the error: popper.js in bootstrap 4 gives SyntaxError Unexpected token export Angular给出了错误: bootstrap 4中的popper.js给出了SyntaxError Unexpected token export
I'm getting this error from browser console. 我从浏览器控制台收到此错误。
Even I changed the popper.min.js location reference but no use.. 即使我更改了popper.min.js位置参考但没有用..
node_modules/popper.js/dist/umd/popper.min.js node_modules / popper.js /距离/ UMD / popper.min.js
node_modules/popper.js/dist/ems/popper.min.js node_modules / popper.js /距离/ EMS / popper.min.js
Angular.json 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 is depend on the popper.min.js , change the order as follows, 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",
]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.