Skip to content
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

netlify presets: [plugin impound] This module cannot be imported in server runtime #2846

Closed
peralta opened this issue Nov 4, 2024 · 2 comments · Fixed by nuxt/nuxt#29780
Closed
Labels
bug Something isn't working preset:netlify

Comments

@peralta
Copy link

peralta commented Nov 4, 2024

Environment

nuxi info output:

Nuxt project info:                                                    19:22:11

------------------------------
- Operating System: Linux
- Node Version:     v18.20.4
- Nuxt Version:     3.14.0
- CLI Version:      3.15.0
- Nitro Version:    2.10.2
- Package Manager:  [email protected]
- Builder:          -
- User Config:      default
- Runtime Modules:  @nuxt/[email protected], @nuxt/[email protected], [email protected], [email protected], notivue/nuxt, @nuxtjs/[email protected], @nuxt/[email protected], [email protected], @nuxt/[email protected], [email protected], @nuxt/[email protected]
- Build Modules:    -

Reproduction

NITRO_PRESET=netlify-legacy pnpm build in a recently upgraded nuxt project to v3.14.0

Describe the bug

Build fails when trying to use either netlify-legacy or netlify presets with the following error:

[19:21:13]  ERROR  [plugin impound] This module cannot be imported in server runtime. [importing node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/nitropack/dist/presets/netlify/legacy/runtime/_deno-env-polyfill from node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/nitropack/dist/presets/netlify/legacy/runtime/netlify.mjs]

Additional context

No response

Logs

No response

@cfab
Copy link

cfab commented Nov 4, 2024

same here !
and same on nuxt: nuxt/nuxt#29778

@manniL
Copy link
Contributor

manniL commented Nov 4, 2024

Seems like the import protection (impound) is triggering where it shouldn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working preset:netlify
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants
@peralta @manniL @cfab and others