Skip to content

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

@peralta

Description

@peralta

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:  pnpm@9.11.0
- Builder:          -
- User Config:      default
- Runtime Modules:  @nuxt/eslint@0.6.1, @nuxt/content@2.13.4, nuxt-time@0.1.3, nuxt-gtag@3.0.1, notivue/nuxt, @nuxtjs/sitemap@5.3.5, @nuxt/image@1.8.1, nuxt-jsonld@2.0.8, @nuxt/fonts@0.9.2, nuxt-purgecss@2.0.0, @nuxt/icon@1.6.1
- 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/nitropack@2.10.2_typescript@5.6.3_webpack-sources@3.2.3/node_modules/nitropack/dist/presets/netlify/legacy/runtime/_deno-env-polyfill from node_modules/.pnpm/nitropack@2.10.2_typescript@5.6.3_webpack-sources@3.2.3/node_modules/nitropack/dist/presets/netlify/legacy/runtime/netlify.mjs]

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions