Is there a conflict between the node_modules folder generated during project creation and some third-party libraries #12369
Unanswered
Sky-Runner-Z
asked this question in
Help/Questions
Replies: 1 comment 1 reply
-
Well, I don't know if there's a specific conflict or not, but I highly recommend creating your Vue project using Vite instead of the traditional Vue CLI. Why Use Vite?
How to Set Up a Vue Project with Vite
npm create vite@latest chose vue, then js or ts. and go to the project folder to install all dependencies. That's it! Using Vite might avoid issues related to dependency conflicts or installation problems. Give it a try! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I create a Vue project like the one shown in the picture, a 'node_modules' folder is automatically generated in the project folder to manage dependency libraries. However, when I use 'npm install vue router -- save' or 'npm install element plus -- save' to download third-party libraries, I cannot use the contents of these libraries properly and the webpage always reports errors -- for example: Cannot read properties of null (reading 'ce') TypeError: Cannot read properties of null..
But when I deleted the original 'node_modules' folder and ran the 'npm install' command to regenerate the new 'node_modules' folder, it could run normally. Why is this happening? Is it because there is a dependency conflict in the original 'node_modules' modules?
Beta Was this translation helpful? Give feedback.
All reactions