Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't use in sveltekit #1

Open
robsalasco opened this issue May 30, 2021 · 1 comment
Open

can't use in sveltekit #1

robsalasco opened this issue May 30, 2021 · 1 comment

Comments

@robsalasco
Copy link

Hi!

I'm trying to use the component in sveltekit but I have an error 500 "Importing binding name 'Map' is not found".

Do you have an idea what's going on?

Thanks for your work!

@nk9
Copy link

nk9 commented Dec 16, 2023

I'm getting a similar error with SvelteKit, but on the other side:

Unexpected token 'export'

/Users/nick/Projects/project/node_modules/svelte-mapbox-gl/src/index.js:1
export { default as Map } from "./Map.svelte"
^^^^^^

SyntaxError: Unexpected token 'export'
    at internalCompileFunction (node:internal/vm:73:18)
    at wrapSafe (node:internal/modules/cjs/loader:1153:20)
    at Module._compile (node:internal/modules/cjs/loader:1197:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1287:10)
    at Module.load (node:internal/modules/cjs/loader:1091:32)
    at Module._load (node:internal/modules/cjs/loader:938:12)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:165:29)
    at ModuleJob.run (node:internal/modules/esm/module_job:192:25)
    at async DefaultModuleLoader.import (node:internal/modules/esm/loader:228:24)
    at async nodeImport (file:///Users/nick/Projects/project/node_modules/vite/dist/node/chunks/dep-68d1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants