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

Cannot use import statement outside a module (ES6) #146

Open
bamalt opened this issue Nov 23, 2023 · 1 comment
Open

Cannot use import statement outside a module (ES6) #146

bamalt opened this issue Nov 23, 2023 · 1 comment

Comments

@bamalt
Copy link

bamalt commented Nov 23, 2023

Hello!

I'm trying to import a module as specified here but I get an error:

Uncaught SyntaxError: Cannot use import statement outside a module

in this line:

import { H5P } from 'h5p-standalone'; // ES6

I've already tried everything and nothing helps.

Help me please.

@otacke
Copy link
Contributor

otacke commented Nov 25, 2023

You may not have tried "everything". Have you familiarized yourself with how import works? Simply pasting the error message that you received into Google should also suffice ;-)

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