-
Notifications
You must be signed in to change notification settings - Fork 218
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
H3 error when building nuxt module #353
Comments
I just recently migrated h3-cors package to native CORS in H3, maybe this can be a cause of the issue? |
Hey @pi0 Do you have any idea about this bug? It stopps me from releasing a new version of the Security module :( |
I managed to find a solution. Basically, I cannot import files from |
Seeing the error message, you might have been facing at unjs/unbuild#135. At the moment, unfortunately, there seems to be no way to fix it or provide workaround on user side, because nuxt module builder accepts just few of unbuild options from user (ref). |
Thanks for clarification @nozomuikuta ! I managed to fix it by not using the types from h3 in my module |
Environment
Node: 16.14
npm: 8.3.1
package-manager: yarn
nuxt: 3.2.3
nuxt-security: 0.11.0 -> Aiming to publish 0.12.0 but cannot due to this error
Reproduction
Run
yarn prepack
in https://github.com/Baroshem/nuxt-securityDescribe the bug
After running
yarn prepack
to build a module following appears:Additional context
It seems to be pointing to:
in node_modules/h3/dist/index.d.ts
Logs
The text was updated successfully, but these errors were encountered: