vuejs / vue-loader

📦 Webpack loader for Vue.js components
MIT License
4.99k stars 915 forks source link

Cannot read properties of undefined (reading 'styles') #1987

Closed danielmlc closed 2 years ago

danielmlc commented 2 years ago

在vue3项目中使用webpack5打包引入的问题

Module build failed (from ../../node_modules/.pnpm/vue-loader@17.0.0/node_modules/vue-loadees/vue-loader/dist/index.js): TypeError: Cannot read properties of undefined (reading 'styles') at Object.loader (E:\project\webpack\new\webpages-packer\node_modules.pnpm\vue-loader@\vue-loader@17.0.0\node_modules\vue-loader\dist\index.js:70:34) @ ./modules/login/index.ts 1:0-28 2:24-27

vue-bot commented 2 years ago

Hello, thank you for taking time filling this issue!

However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).

I hope to see your helper-created issue very soon!


你好,你的 issue 不符合我们所要求的格式,因此已被自动关闭。为了确保每个 issue 都提供必需的相关信息,请务必使用我们的 Issue 向导 来创建新 issue,谢谢!

JanMalte commented 1 year ago

@danielmlc do you use VueJS v2? If you do so, you need to stick with vue-loader<=15

Maybe this issue helpful for you: https://github.com/vuejs/vue-loader/issues/1973#issuecomment-1183982271