Skip to content

@rollup/plugin-commonjs Cannot read properties of undefined (reading '_container') #1802

@xiaoqianghaochi

Description

@xiaoqianghaochi
  • Rollup Plugin Name: @rollup/plugin-commonjs
  • Rollup Plugin Version:28.0.1
  • Rollup Version:4.24.0
  • Operating System (or Browser):
  • Node Version: mac os
  • Link to reproduction (⚠️ read below):

TypeError: Cannot read properties of undefined (reading '_container')
at load (file:///Users/*/vite-ssr-test/node_modules/vite/dist/node/chunks/dep-Cyk9bIUq.js:49176:16)

Expected Behavior

SSR loads commonjs normally

Actual Behavior

TypeError: Cannot read properties of undefined (reading '_container')
at load (file:///Users/*/vite-ssr-test/node_modules/vite/dist/node/chunks/dep-Cyk9bIUq.js:49176:16)

image

image

image

Reason: This was lost after passing the method

Additional Information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions