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
Tried using cake - got the error "Cannot use import statement outside a module". So, I went to GitHub to report this as a bug since my package.json files ALWAYS have "type": "module" in them. Come to find out that I'd already reported that as a bug way back last year. LOL.
Choose one: is this a bug report or feature request?
Let's call it a feature request, though I personally consider it a bug
Input Code
Expected Behavior
Import should work
Current Behavior
Error message:
SyntaxError: Cannot use import statement outside a module
Possible Solution
Support ES6 modules in a Cakefile if the current project type is "module"
Context
I would prefer to not use require() anywhere in my code
Environment
Latest version of Windows 11
The text was updated successfully, but these errors were encountered: