store.js
store.js copied to clipboard
Unable to use with Angular 4 "require is not definied"
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!