-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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 'modules') #14802
Comments
I have the same problem. With 3.0.0-rc.8 it works fine |
Same issue here. |
After reinstalling. Xcode, home brew and node , it worked . Don't know where the issue origins from. I had no issues running previous rc version before reinstalling . It only caused issues on rc.9. Worth a try for others , hope it helps. |
The same thing is happening for me and my colleague on Windows. I can't recreate it in a blank project, but our actual project has this issue. I've tried:
When the project is built for production it runs fine. I appreciate I'm not offering much to go on, but I'm a bit stumped as to what else to try. |
The error message here is referring to |
Thanks for the pointer. I think I figured out which of my dependencies is doing it. For now I've just commented out the dependency in question as it's not really necessary. I have a module project (scaffolded via I wouldn't know how to go about bringing that dependency back into the project while avoiding this error, but it's not the end of the world. |
If it is a vue dependency issue, you could either add that package to your |
This worked for me. Downgrading to 3.0.0-rc.8 |
As this is also happening in https://github.com/sidestream-tech/sidebase, I've checked for different vue-versions there, and it looks like they are all the same: ❯ npm list --depth=10 | grep ' vue@'
│ └── vue@3.2.38 deduped
│ │ └── vue@3.2.38 deduped
│ └── vue@3.2.38 deduped
│ └── vue@3.2.38 deduped
│ │ └── vue@3.2.38 deduped
│ │ └── vue@3.2.38 deduped
│ ├── vue@3.2.38 deduped
│ │ │ └── vue@3.2.38 deduped
│ │ └── vue@3.2.38 deduped
│ │ └── vue@3.2.38 deduped
│ │ └── vue@3.2.38 deduped
│ └── vue@3.2.38 deduped
│ └── vue@3.2.38 deduped
├─┬ vue@3.2.38
│ │ └── vue@3.2.38 deduped |
I'm getting this issue also. Strangely though, I created a new install of Nuxt 3rc9 and added my modules one by one to find the one causing the issue and they all worked. Matched the dependencies with the original project experiencing the problem and still get the 500 error. |
clean install of rc.9 and rc.10 fails for Ubuntu 22.04. |
Check the vue versions in your lock file. If you see two or more different versions like vue@3.2.39 vue@3.2.37, make the same vue versions in your project. Get all your vue versions to the latest version. This is not a problem on the nuxt side. |
@productdevbook The problem is that for some people, even the starter project fails where Vue versions should be fine. See #14802, as well as the author of the issue. |
@a1xon How many different vue versions do you see in the lock file? search please |
Same error on MacBook Pro , Ubuntu 18.04.6. But it's ok on windows 11. Node Version: v16.17.0 |
@brightjune How many different vue versions do you see in the lock file? search please |
One. "version": "3.2.39". It's a fresh install. |
very interesting, can you send me a lock file so I can review it ? Thank you |
I have the same problem, I install a purely new Nuxt RC10 or RC9 project and get this error. Also, I only have one Here is my package-lock.json: https://www.transfernow.net/dl/20220916abOwN9Oc |
@vue/runtime-core 3.2.39 Here is the yarn lock file, Thank you! |
Moving to #14952 |
Environment
Darwin
v16.14.0
3.0.0-rc.9
0.5.0
npm@8.3.1
vite
-
-
-
Reproduction
Error is thrown only when running on macbook...
Describe the bug
Unable to run dev after fresh install on Macbook.
However, doing npm run build, and npm run preview works without issue.
Testing in stackblitz shows no issues however.
Additional context
Had no issues yesterday when doing fresh install of rc.9
Logs
The text was updated successfully, but these errors were encountered: