[webpack-dev-middleware] [Error: × TypeError: Cannot read properties of undefined (reading 'set') #3445
Unanswered
ThomasXing
asked this question in
Q&A
Replies: 2 comments 5 replies
-
use rspack plugin instead. https://rspack.dev/plugins/webpack/internal-plugins#containerreferenceplugin |
Beta Was this translation helpful? Give feedback.
5 replies
-
You should have encountered an error in the renderContent method due to the use of JSX syntax. Install the rsbuild-plugin-vue2-jsx plugin and add lang="jsx" to the script section, like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
e> [webpack-dev-middleware] [Error: × TypeError: Cannot read properties of undefined (reading 'set')
│ at Object.fn (/Users/thomasxing/workspace/admin/web/node_modules/.pnpm/[email protected]/node_modules/webpack/lib/container/ContainerReferencePlugin.js:84:37)
│ at SyncHook.callAsyncStageRange (/Users/thomasxing/workspace/admin/web/node_modules/.pnpm/@rspack[email protected]/node_modules/@rspack/lite-tapable/dist/index.js:240:21)
│ at SyncHook.callStageRange (/Users/thomasxing/workspace/admin/web/node_modules/.pnpm/@rspack[email protected]/node_modules/@rspack/lite-tapable/dist/index.js:259:14)
│ at QueriedHook.call (/Users/thomasxing/workspace/admin/web/node_modules/.pnpm/@rspack[email protected]/node_modules/@rspack/lite-tapable/dist/index.js:218:26)
│ at /Users/thomasxing/workspace/admin/web/node_modules/.pnpm/@rspack+core@1.0.4_@swc[email protected]/node_modules/@rspack/core/dist/Compiler.js:572:244
│ at last.function (/Users/thomasxing/workspace/admin/web/node_modules/.pnpm/@rspack+core@1.0.4_@swc[email protected]/node_modules/@rspack/core/dist/Compiler.js:862:28)
│
] {
code: 'GenericFailure'
}
还没有对dev-middleware 做相关配置 不知道为啥这块报错
Beta Was this translation helpful? Give feedback.
All reactions