You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
internal/modules/cjs/loader.js:311
throw err;
^
Error: Cannot find module '/home/b2beuroingro12/Documenti/euroingro-frontend/node_modules/vuex-router-sync/dist/vuex-router-sync.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (internal/modules/cjs/loader.js:303:19)
at Function.Module._findPath (internal/modules/cjs/loader.js:516:18)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:867:27)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at eval (webpack:///external_%22vuex-router-sync%22?:1:18)
at Object.vuex-router-sync (/home/b2beuroingro12/Documenti/euroingro-frontend/dist/server/js/app.js:10014:1)
at __webpack_require__ (/home/b2beuroingro12/Documenti/euroingro-frontend/dist/server/js/app.js:27:30)
at eval (webpack:///./src/app.js?:7:74) {
code: 'MODULE_NOT_FOUND',
path: '/home/b2beuroingro12/Documenti/euroingro-frontend/node_modules/vuex-router-sync/package.json',
requestPath: 'vuex-router-sync'
}
You can temporarily fix this by going into node_modules/vuex-router-sync/package.json and replace "main":"dist/vuex-router-sync.js" with "main":"dist/vuex-router-sync.cjs.js"
AFAIK it's not needed anymore as you can simply use a getter in your vuex store for the same effect.
E.g. getters: { route(state) { return router.currentRoute.value } }
Error:
Package.json
Node Version: v14.16.1
The text was updated successfully, but these errors were encountered: