background
The vue project used to run fine.
One day I suddenly opened the project, and the following error was reported when running the project with npm run dev
TypeError: transpileDependencies.map is not a function
at genTranspileDepRegex (/Users/hjc/app:小程序/邮你采/邮你采/ync-admin/node_modules/@vue/cli-plugin-babel/index.js:6:38)
at module.exports (/Users/hjc/app:小程序/邮你采/邮你采/ync-admin/node_modules/@vue/cli-plugin-babel/index.js:22:29)
The problem is in this "app: applet" here
I forgot that one day suddenly I changed the name of the outer folder of the file path where the project is located: app/applet
The original file name is: app applet ( without "/" in the middle)
Solution
So the final solution is to find the wrong folder and fix the name.
remember! Do not add special symbols such as '/' to the file name