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
There seems to be an issue with the export from the package since I get this error when trying to run the example provided.
import svelte from "highlight.svelte";
^^^^^^
SyntaxError: The requested module 'highlight.svelte' does not provide an export named '
default'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:177:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:260:5)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:543:26)
at async loadConfigFromBundledFile (file:///Users/fabiancarrasco/Documents/npm/Test
Svelte/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:66691:15)
at async loadConfigFromFile (file:///Users/fabiancarrasco/Documents/npm/TestSvelte/
node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:66532:24)
at async resolveConfig (file:///Users/fabiancarrasco/Documents/npm/TestSvelte/node_
modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:66140:24)
at async _createServer (file:///Users/fabiancarrasco/Documents/npm/TestSvelte/node_
modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:62758:18)
at async CAC.<anonymous> (file:///Users/fabiancarrasco/Documents/npm/TestSvelte/nod
e_modules/vite/dist/node/cli.js:735:20)```
The text was updated successfully, but these errors were encountered:
hi @FabianCarrasco, seems like you forgot to build the package first, it can be done with npm run build.
you can easily build and run svelte example app with npm run dev from root level. this will build the package then spin up svelte dev server.
Issue
There seems to be an issue with the export from the package since I get this error when trying to run the example provided.
The text was updated successfully, but these errors were encountered: