store.js icon indicating copy to clipboard operation
store.js copied to clipboard

Unable to use with Angular 4 "require is not definied"

Open prakashraman opened this issue 7 years ago • 0 comments

Hi

I installed the package using

npm install store

And have include the following in my .angular-cli.json

"scripts": [
        "../node_modules/store/dist/store.legacy.js"
      ],

I get the follow error when the browser loads up

scripts.bundle.js:1883 Uncaught ReferenceError: require is not defined
at scripts.bundle.js:1883

I don't think this is an issue with store.js. Although what needs to be done to get it to work?

Thanks!

prakashraman avatar Feb 02 '18 11:02 prakashraman