Introvertuous / svelte-icons

Icon components for svelte
https://svelte-icons.vercel.app
292 stars 21 forks source link

Unexpected token 'export' #55

Open cocodrino opened 2 years ago

cocodrino commented 2 years ago

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)```
samw3 commented 10 months ago

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