Cannot use import statement outside a module
Nauxscript opened this issue · 1 comments
Nauxscript commented
hey! Thank you for your work!
I am currently using alfy to built a Workflow, but when I followed the usage guidance to init the project and put the demo code in the index.js
, then run the workflow, it showed below error:
import alfy from 'alfy';
^^^^^^
SyntaxError: Cannot use import statement outside a module
so is there any mistake in my project or code? please let me know. thank u!
Nauxscript commented
sorry, i made a stupid mistake missing add the "type": "module",
.