Hello *,
In a background script, I try to import a module with:
import { echo } from "mymodule";
The module <mymodule.js> is in the same location than the background script.
I get the error message:
SyntaxError: import declarations may only appear at top level of a module
Even when the import function is at line 1, I get this error.
Same problem in an action script.
What should I do to import a module?