-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project with type Modules skips prompt #406
Comments
I added a PR to fix this. I believe the only issue is just adding a If you want a test created, let me know how / where that would be handled and I will happily create one. |
This issue is now resolved and can be closed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey everyone. I have a project that has type set to
module
in thepackage.json
file.We have been using Hygen for a while and we recently updated our entire app. The last thing we need to fix up is the Hygen generators.
It seems that with
type: module
in thepackage.json
file, theprompt.js
file is just skipped. This leads to errors where the templates are looking for the specific inputs that are not being requested.Following some other issues here and there, I have tried renaming
prompt.js
toprompt.cjs
andprompt.mjs
. Both are skipped completely.I had also tried to use
export default
in place ofmodule.exports
but all this doesn't matter as the file is skipped anyway.Here is the error output
My question is, what do I have to do to get Hygen to work with
type:module
?The text was updated successfully, but these errors were encountered: