We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The error only occurs in production after running :
yarn build yarn start
I am in the process of updating a module in our company from v3.0.0-rc.4 to v3.0.0
We're not using nitro and vite yet, as we still have some work to do.
Our module installs other modules using installModule function from @nuxt/kit.
installModule
@nuxt/kit
The following error occurs when launching the server after a production build :
yarn run v1.22.19 $ nuxt2 start ERROR nuxt.options._layers is not iterable 7:37:51 PM at installModule (node_modules/@nuxt/kit/dist/index.mjs:2409:32)
I traced the error back to its source
If I understand correctly,
v3.0.0-rc.4
v3.8.2
v3.0.0
v3.9.1
nuxt.options._layers
@nuxt/bridge
dev
build
undefined
Proposed solution:
buildModules
No response
The text was updated successfully, but these errors were encountered:
I think we should create an issue on upstream for this. https://github.com/nuxt/nuxt
Also, I think it is better to use @nuxt/kit with buildModules. In nuxt 3, modules are build-time-only. https://nuxt.com/docs/guide/concepts/modules#add-nuxt-modules https://nuxt.com/docs/migration/module-authors#avoid-runtime-modules
Sorry, something went wrong.
No branches or pull requests
Environment
Reproduction
The error only occurs in production after running :
Describe the bug
I am in the process of updating a module in our company from v3.0.0-rc.4 to v3.0.0
We're not using nitro and vite yet, as we still have some work to do.
Our module installs other modules using
installModule
function from@nuxt/kit
.The following error occurs when launching the server after a production build :
I traced the error back to its source
If I understand correctly,
v3.0.0-rc.4
uses versionv3.8.2
of@nuxt/kit
v3.0.0
uses versionv3.9.1
of@nuxt/kit
.installModule
function inv3.9.1
depends on the contents of thenuxt.options._layers
property. L19nuxt.options._layers
property is mocked by@nuxt/bridge
but only indev
environment or during thebuild
process. L61nuxt.options._layers
property isundefined
when the server is started.Proposed solution:
buildModules
function.Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: