You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.
I can't use import statement inside ejs template. esModule option of ejs-loader loader is set to true. And I am facing the "Cannot use import statement outside a module" error.
I can't use
import
statement inside ejs template.esModule
option ofejs-loader
loader is set totrue
. And I am facing the "Cannot use import statement outside a module" error.My guess is that this is due to the
import
being inside a function, which is not the correct syntax:Is it possible to move the
import
statements to the top level of the generated es module?The text was updated successfully, but these errors were encountered: