championswimmer / vuex-persist

A Vuex plugin to persist the store. (Fully Typescript enabled)
http://championswimmer.in/vuex-persist
MIT License
1.67k stars 117 forks source link

Module not found: Error: Can't resolve './MockStorage' in '[...]/vuex-persist/dist #12

Closed Brian-McBride closed 6 years ago

Brian-McBride commented 6 years ago

Just tried to use your plugin (thanks for the development by the way.) However, I did get this error.

Tronix117 commented 6 years ago

Same here :)

CmdrShepardsPie commented 6 years ago

Same, seems to be a problem introduced in 0.5.0, it still works in 0.4.0.

RichiCoder1 commented 6 years ago

Looks like somehow the dist js got unbundled in this commit: 5066a6c3690bef4663770261976d7febd5304814

davi5e commented 6 years ago

+1

ERROR in ./node_modules/vuex-persist/dist/index.js Module not found: Error: Can't resolve './MockStorage' in '/node_modules/vuex-persist/dist' @ ./node_modules/vuex-persist/dist/index.js 7:20-44 @ ./resources/assets/js/store.js @ ./resources/assets/js/main.js @ multi ./resources/assets/js/main.js ./resources/assets/sass/main.scss ./resources/assets/stylus/vuetify.styl

ERROR in ./node_modules/vuex-persist/dist/index.js Module not found: Error: Can't resolve './SimplePromiseQueue' in '/node_modules/vuex-persist/dist' @ ./node_modules/vuex-persist/dist/index.js 9:27-58 @ ./resources/assets/js/store.js @ ./resources/assets/js/main.js @ multi ./resources/assets/js/main.js ./resources/assets/sass/main.scss ./resources/assets/stylus/vuetify.styl

pomeisl commented 6 years ago

When i tried to use 0.5.0, then i met with this:

ERROR in ./node_modules/vuex-persist/dist/index.js Module not found: Error: Can't resolve './MockStorage' in 'C:\WorkspaceSTS\vue-lessons\vue-pwa-feri-03\node_modules\vuex-persist\dist' @ ./node_modules/vuex-persist/dist/index.js 7:20-44 @ ./src/store/index.js @ ./src/main.js @ multi ./build/dev-client ./src/main.js ERROR in ./node_modules/vuex-persist/dist/index.js Module not found: Error: Can't resolve './SimplePromiseQueue' in 'C:\WorkspaceSTS\vue-lessons\vue-pwa-feri-03\node_modules\vuex-persist\dist' @ ./node_modules/vuex-persist/dist/index.js 9:27-58 @ ./src/store/index.js @ ./src/main.js @ multi ./build/dev-client ./src/main.js

jotafurtado commented 6 years ago

Same here! Works in 0.4.

championswimmer commented 6 years ago

Should be solved in 0.6.0

championswimmer commented 5 years ago

Please use 0.4 meanwhile. Will fix this soon

On Fri 19 Oct, 2018, 10:20 AM shannonsands, notifications@github.com wrote:

Still getting this issue on latest build- Unexpected token: name (MockStorage) [./~/vuex-persist/dist/esm/index.js:6,0]

Using a vue-cli generated project.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/championswimmer/vuex-persist/issues/12#issuecomment-431244088, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQ_yplKTpK92G5sZ9NrhtP-6ry3Hoa7ks5umVoLgaJpZM4QYvmk .