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

Uncaught SyntaxError: Unexpected token import #96

Closed
alexzace opened this issue Jun 25, 2019 · 2 comments
Closed

Uncaught SyntaxError: Unexpected token import #96

alexzace opened this issue Jun 25, 2019 · 2 comments

Comments

@alexzace
Copy link

import * as Ladda from 'ladda';

how can i import ladda in electron app ?

@yagobatista
Copy link

yagobatista commented Sep 10, 2019

try const Ladda = require('ladda');

@theodorejb
Copy link
Collaborator

Per the instructions in the readme, use a module bundler such as Rollup or Webpack if your environment doesn't support native ES6 module imports.

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

3 participants