0

I am trying to install ngx-popover (by the way the files I get from npm install are different from the ones in github)

This the file structure

enter image description here

and this is how I add it in the angular-cli.json

enter image description here

Now the problem is that, in the console its giving me errors saying "Uncaught ReferenceError: require is not defined"

enter image description here

Do I need to add require.js ? Also this question seems to be similar, but I could not find module: commonjs anywhere.

How do I fix this issue ?

Community
  • 1
  • 1
Flying Gambit
  • 1,238
  • 1
  • 15
  • 32

0 Answers0