I have recently installed popper.js
using the below comment
npm install --save popper.js angular-popper
Then, I add the below in angular.json
"scripts": [
"node_modules/jquery/dist/jquery.min.js",
"node_modules/popper.js/dist/popper.js",
"node_modules/bootstrap/dist/js/bootstrap.min.js",
"src/assets/fancybox/js/jquery.fancybox.min.js"
]
But when I run the application I am getting the error as below in scripts.js
,
SyntaxError: export declarations may only appear at top level of a module
So, as per This documentation I tried importing through app.module.ts
as well. But no luck.
Popper.js/dist/umd
– Alexandrinapopper.js
in the root and the one inside theumd
? Post this as an answer though. – Polad