'vue TypeError: Cannot read properties of undefined (reading 'NormalModule')
I'm using 2 machines to test and develop a small web app written in vue. For the project I use github to easily work on both machines.
Up until yesterday I was working on macos without an issue. Today I tried to get the project up and running on my windows machine but I'm stuck with this error:
TypeError: Cannot read properties of undefined (reading 'NormalModule')
So far I've tried the following:
- (re)installing the
node_modulesfolder usingnpm install - deleting
node_modulesandpackage-lock.jsonand runningnpm installagain - updating node, npm and vue to the same version on both machines
unfortunately the error still exists on my windows machine. I have no issue letting the project run on my macbook.
TypeError: Cannot read properties of undefined (reading 'NormalModule')
at VueLoaderPlugin.apply (C:\dev\prj\node_modules\vue-loader-v16\dist\pluginWebpack5.js:44:47)
at webpack (C:\dev\prj\node_modules\@vue\cli-service\node_modules\webpack\lib\webpack.js:51:13)
at serve (C:\dev\prj\node_modules\@vue\cli-service\lib\commands\serve.js:163:22)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
