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

Unexpected token 'export'

Open cocodrino opened this issue 2 years ago • 1 comments

Hello...I'm receiving this error trying to import Dev Icons...for instance

  import DiGithubAlt from 'svelte-icons/di/DiGithubAlt.svelte'
export { default as Md3DRotation } from './Md3DRotation.svelte';
^^^^^^

SyntaxError: Unexpected token 'export'
    at Object.compileFunction (node:vm:352:18)
    at wrapSafe (node:internal/modules/cjs/loader:1032:15)
    at Module._compile (node:internal/modules/cjs/loader:1067:27)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:168:29)
    at ModuleJob.run (node:internal/modules/esm/module_job:197:25)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:337:24)```

cocodrino avatar Jul 29 '22 18:07 cocodrino

I just ran into this. Did you find a solution?

samw3 avatar Dec 31 '23 14:12 samw3