Skip to content

Following usage example leads to an error. #83

@FabianCarrasco

Description

@FabianCarrasco

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.

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)```

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions