marcuswestin / store.js

Cross-browser storage for all use cases, used across the web.
MIT License
14.01k stars 1.33k forks source link

Attempted to assign to readonly property - browser error #251

Open ghost opened 6 years ago

ghost commented 6 years ago

I'm trying to use store.everything.min.js

I have downloaded the raw build direct from GitHub, but when I include it on a site both Chrome and Safari give the error "Attempted to assign to readonly property" and store.js therefore does not work at all.

I have tried store.legacy.min.js which works fine, but I want to use the "expires" functionality, and I'm using as a script tag on a website rather than through npm.

Anybody have any ideas? I thought I'd found a great resource, but now my faith in it's reliability has dropped somewhat. Perhaps I'm doing something wrong, but I can't see any issues.

screen shot 2017-09-14 at 10 35 17