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 was 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
importstatement inside ejs template.esModuleoption ofejs-loaderloader 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
importbeing inside a function, which is not the correct syntax:Is it possible to move the
importstatements to the top level of the generated es module?