Closed rokoroku closed 7 years ago
It resolves with using require('store/dist/store.everything.min')
or require('store/dist/store.legacy.min')
Why don't we use main
entry in package.json
to direct distribution build?, or we can add browser
entry to the package.json
. It will prevent such situations.
Found that it was caused by deprecated clear()
method.
Changing it to clearAll()
resolves the issues :)
store.js
failed in PhantomJS@2.1
Here is the error log
PhantomJS 2.1.1 (Linux 0.0.0) ERROR
TypeError: undefined is not a function (evaluating 'this._deserialize(data, optionalDefaultValue)')
at webpack:///node_modules/store/src/store-engine.js:23:0 <- index.js:154778
Is there any way to solve the problem?
prior to v2, my tests are all good. but after upgrading to v2,
store
related tests are all broken now.using
karma@1.5
,karma-phantomjs-launcher@1.0.4
,phantomjs@2.1.1
andwebpack@2.2.1
is this problem related to phantomJS's missing support for localstorage?
example output: