Skip to content

[email protected] this version has a build error。TypeError: module.getSourceBasicTypes is not a function #20597

@21duxue

Description

@21duxue

Have you used AI?

None

Bug Description

The construction error is as follows
Build Error 1: ModuleHashingError: connection.module.getSourceBasicTypes is not a function
at Compilation._createModuleHash (/node_modules/.pnpm/[email protected]_3pfeiva7nuvfcswz4nbywurnwi/node_modules/webpack/lib/Compilation.js:4440:16)

Build Error 2:
TypeError: module.getSourceBasicTypes is not a function
at HarmonyImportSideEffectDependencyTemplate.apply (node_modules/.pnpm/[email protected]_3pfeiva7nuvfcswz4nbywurnwi/node_modules/webpack/lib/dependencies/HarmonyImportSideEffectDependency.js:79:25)

It was found that the collection dependency module is undefined. Please be compatible with this situation

Link to Minimal Reproduction and step to reproduce

node:20
webpack:5.105.4

Expected Behavior

It was found that the collection dependency module is undefined. Please be compatible with this situation

Actual Behavior

It was found that the collection dependency module is undefined. Please be compatible with this situation

Environment

node:20
webpack:5.105.4

Is this a regression?

None

Last Working Version

No response

Additional Context

No response

Metadata

Metadata

Assignees

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