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

unable to import in node.js #129

Open
ralyodio opened this issue Apr 29, 2024 · 1 comment
Open

unable to import in node.js #129

ralyodio opened this issue Apr 29, 2024 · 1 comment

Comments

@ralyodio
Copy link

import satellite from 'satellite.js' fails:

SyntaxError: import not found: default [app.js:18:40](http://localhost:5173/@fs/home/ettinger/src/profullstack.com/sentinel/.svelte-kit/generated/client/app.js)
    handleError app.js:18
    handle_error client.js:1620
    load_route client.js:1015
    navigate client.js:1288
    _goto client.js:367
    goto client.js:1732
    start client.js:295
    <anonymous> (index):28
    (Async: promise callback)
    <anonymous>
@Rafa1914
Copy link

Try this:

import * as satellite from 'satellite.js';

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