svelte-highlight icon indicating copy to clipboard operation
svelte-highlight copied to clipboard

svelte-highlight in Routify

Open oschina opened this issue 4 years ago • 2 comments

code:

<script>
    import { Highlight } from "svelte-highlight";
    import json from "svelte-highlight/src/languages/json";
    import github from "svelte-highlight/src/styles/github";
</script>

<svelte:head>
  {@html github}
</svelte:head>

<Highlight language={json} {jsonSample} />

get error:

core.js?v=c35c3444:2         
       Uncaught (in promise) SyntaxError: The requested module '/@fs/..../node_modules/highlight.js/lib/core.js?v=c35c3444' does not provide an export named 'default'

oschina avatar Nov 27 '21 14:11 oschina

What svelte-highlight, routify versions are you using?

metonym avatar Nov 27 '21 16:11 metonym

What svelte-highlight, routify versions are you using?

sorry for later reply:

"svelte-highlight": "^5.1.3" "@roxi/routify": "^2.18.3"

oschina avatar Dec 03 '21 13:12 oschina