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
Can't get svelte-tablesort to build cleanly. I can get it to build for "production" by hacking a few package.json files. But vite (npm run dev) never works -- usually with "exports not defined" and "Sourcemap refers to missing files" (approx). Since I need to push to Heroku, vite is required.
First, build fails with "TableSort not exported". Once that is hacked by adding "TableSort": "./TableSort.svelte" in the package.json, then vite complains that rollup failed to resolve it:
[vite]: Rollup failed to resolve import "svelte-tablesort" from "src/routes/index.svelte".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to build.rollupOptions.external
[vite]: Rollup failed to resolve import "svelte-tablesort" from "src/routes/index.svelte".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to build.rollupOptions.external
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to build.rollupOptions.external
at onRollupWarning (C:\Users\bjmckenz\Desktop\SOURCE\vite-svelte-prob\node_modules\vite\dist\node\chunks\dep- 8f5c9290.js:41772:19)
at onwarn (C:\Users\bjmckenz\Desktop\SOURCE\vite-svelte-prob\node_modules\vite\dist\node\chunks\dep-8f5c9290.js:41588:13)
at Object.onwarn (C:\Users\bjmckenz\Desktop\SOURCE\vite-svelte-prob\node_modules\rollup\dist\shared\rollup.js:23224:13)
at ModuleLoader.handleResolveId (C:\Users\bjmckenz\Desktop\SOURCE\vite-svelte- prob\node_modules\rollup\dist\shared\rollup.js:22508:26)
at C:\Users\bjmckenz\Desktop\SOURCE\vite-svelte-prob\node_modules\rollup\dist\shared\rollup.js:22469:26
Description
Can't get svelte-tablesort to build cleanly. I can get it to build for "production" by hacking a few package.json files. But vite (npm run dev) never works -- usually with "exports not defined" and "Sourcemap refers to missing files" (approx). Since I need to push to Heroku, vite is required.
Feel free to access this example via https:/bjmckenz/vite-svelte-prob
Apologies for no better ideas...Thanks.
Versions
[email protected] C:\Users\bjmckenz\Desktop\SOURCE\vite-svelte-prob
+-- @sveltejs/[email protected]
| +-- @sveltejs/[email protected]
| | +-- [email protected]
| | |
-- [email protected] deduped | |
-- [email protected] deduped|
-- [email protected] deduped +-- [email protected] |
-- [email protected] deduped+-- [email protected]
| +-- [email protected]
| |
-- [email protected] deduped |
-- [email protected] deduped+-- [email protected]
|
-- [email protected] |
-- [email protected] deduped`-- [email protected]
Steps
Results
[vite]: Rollup failed to resolve import "svelte-tablesort" from "src/routes/index.svelte".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
build.rollupOptions.external
package.json
}
The text was updated successfully, but these errors were encountered: