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

SyntaxError: Cannot use 'import.meta' outside a module #3

Open
fregante opened this issue Sep 8, 2020 · 1 comment
Open

SyntaxError: Cannot use 'import.meta' outside a module #3

fregante opened this issue Sep 8, 2020 · 1 comment
Labels

Comments

@fregante
Copy link
Owner

fregante commented Sep 8, 2020

❯ ava

  ✖ No tests found in tests/index.jsx

  ─

  Uncaught exception in tests/index.jsx

  ./tests/index.jsx:13
  const _require = (0, _module.createRequire)(import.meta.url);
                                                     ^^^^

  SyntaxError: Cannot use 'import.meta' outside a module

  ─

  1 uncaught exception
@fregante fregante added the AVA label Sep 8, 2020
@fregante
Copy link
Owner Author

fregante commented Sep 8, 2020

No AVA+Babel+ESM support: avajs/babel#13

You need a bundler: vadimdemedes/dom-chef#68

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

No branches or pull requests

1 participant