Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read properties of undefined (reading 'NormalModule') #1969

Open
albizeka opened this issue Jun 29, 2022 · 2 comments
Open

Cannot read properties of undefined (reading 'NormalModule') #1969

albizeka opened this issue Jun 29, 2022 · 2 comments

Comments

@albizeka
Copy link

albizeka commented Jun 29, 2022

Version

16.8.3

Reproduction link

sfc.vuejs.org/

Steps to reproduce

I updated the vue 3 to vue 3 typescript and this is happened

What is actually happening?

I'm updating the vue 3 project to vue 3 typescript and this is the error i'm encountering:

ERROR TypeError: Cannot read properties of undefined (reading 'NormalModule')
TypeError: Cannot read properties of undefined (reading 'NormalModule')
at VueLoaderPlugin.apply (/Users/albizeka/Desktop/project/resources/client/node_modules/vue-cli-plugin-vue-next/node_modules/vue-loader/dist/pluginWebpack5.js:44:47)
at webpack (/Users/albizeka/Desktop/project/resources/client/node_modules/@vue/cli-service/node_modules/webpack/lib/webpack.js:51:13)
at serve (/Users/albizeka/Desktop/project/resources/client/node_modules/@vue/cli-service/lib/commands/serve.js:137:22)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

I read some of things that i found on another pages, like to downgrade the webpack and ts-loader to 8.2.0 but none of this seemed to work.

@michaelowolf
Copy link

michaelowolf commented Sep 1, 2022

For me this seemed to be due to an incompatible webpack version (coming from an old version of webpack-stream) - I upgraded from 4.46.0 to 5.74.0 and the issue seemed to be resolved. That makes me think the peer dependencies for vue-loader might not be quite correct.

(This change tipped me off #1884).

@Abdulhai-Mohamed
Copy link

still face the same problem
TypeError: Cannot read properties of undefined (reading 'NormalModule')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants