tunapanda / h5p-standalone

Display H5P content without the need for an H5P server
MIT License
272 stars 117 forks source link

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

Open bamalt opened 10 months ago

bamalt commented 10 months ago

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 commented 10 months ago

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 ;-)