-
Notifications
You must be signed in to change notification settings - Fork 21
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
Error due to invalid import statement #59
Comments
@naris this actually how the next release of generator-jhipster will work, I tracked the change earlier to: jhipster/generator-jhipster#19823 To use this branch, checkout my branch locally, and run inside of the project
This will configure npm to use my branch when asked instead of the default release. The in your project (The one you are trying to generate) run:
This will create a sim link to my branch in in the node_modules of your project (this needs to be be done after each npm install that breaks the link). Hope this helps |
Unfortunately, I am unable to run npm install after checking out the composite-key branch :(
The log has
|
I have created an issue for the npm install problem in jhipster's project |
@naris new release 7.9.4 with some small fixes |
There are 4 places where an import statement tries to import a directory in the latest version (7.9.3). This is not valid and causes errors https://stackoverflow.com/questions/64453859/directory-import-is-not-supported-resolving-es-modules-with-node-js.
This was posted before in issue #58 but was immediately closed without any investigation whatsoever.
The suggested fix from stackoverflow is to append /index.js, which does indeed work. I have created pull request #60 with the fix.
The text was updated successfully, but these errors were encountered: