zyxd/svelte-store-router

Error in Webpack: Module not found

qskousen opened this issue · 3 comments

When compiling with Webpack, I get these errors:

WARNING in ./resources/js/stores/stores.js 3:21-37
export 'createRouteStore' (imported as 'createRouteStore') was not found in 'svelte-store-router' (possible exports: )
 @ ./resources/js/pages/App.svelte 22:0-41 261:16-21 262:29-34 275:2-7
 @ ./resources/js/fbk.js 1:0-37 3:16-19

ERROR in ./node_modules/svelte-store-router/src/node_modules/components/Match.svelte 20:0-36
Module not found: Error: Can't resolve 'functions/match' in 'node_modules/svelte-store-router/src/node_modules/components'
 @ ./node_modules/svelte-store-router/src/index.mjs 3:0-58 3:0-58
 @ ./resources/js/pages/App.svelte 21:0-53 112:14-19 122:14-19 198:15-22 273:2-7 274:2-9
 @ ./resources/js/fbk.js 1:0-37 3:16-19

ERROR in ./node_modules/svelte-store-router/src/index.mjs 1:0-72
Module not found: Error: Can't resolve 'functions/createRouteStore' in 'node_modules/svelte-store-router/src'
 @ ./resources/js/pages/App.svelte 21:0-53 112:14-19 122:14-19 198:15-22 273:2-7 274:2-9
 @ ./resources/js/fbk.js 1:0-37 3:16-19

ERROR in ./node_modules/svelte-store-router/src/index.mjs 2:0-50
Module not found: Error: Can't resolve 'functions/match' in 'node_modules/svelte-store-router/src'
 @ ./resources/js/pages/App.svelte 21:0-53 112:14-19 122:14-19 198:15-22 273:2-7 274:2-9
 @ ./resources/js/fbk.js 1:0-37 3:16-19

I am not a JS or Webpack expert but I am using several other packages without issue. I see inside the src directory there is a node_modules directory which I don't see in other packages, and wherein reside the files webpack is trying to find but can't. I don't know if that is an issue or not, maybe I am just doing something dumb?

meh commented

Same issue with Vite.

zyxd commented

In v1.0.23 should be fixed. Could you check please?

meh commented

All good now, thanks!