TypeError: transpileDependencies.map is not a function——solution—pro-test is effective

npm run serveI encountered a problem during the project today . The terminal prompted TypeError: transpileDependencies.map is not a functionthat the project could not run.

Solutions found online:

insert image description here
The solutions provided on the Internet are basically:

1. npm audit fixThis error will be reported only after execution - useless

insert image description here
insert image description here

2. node_modulesAfter deleting the folder, reinstall npm i- useless

insert image description here

3. npm iIncomplete installation, using yarninstallation dependencies - useless

4. Modify vue.config.jsthe file - useless

insert image description here

The solution on my side is: vue-clithe version number problem

Some friends on the Internet also pointed out that it is vue-clia version problem. I also paid attention to the current version and the previous normal version, and found that the current version is much higher than the previous version.

So: node_modulesAfter deleting the folder, replace package.jsonand package-lock.jsonwith the previous version, and then restart npm i.

Finish! ! ! A lot of accumulation, a lot of harvest!

Guess you like

Origin blog.csdn.net/yehaocheng520/article/details/131410670