Error in vue project build

it was normal two days ago, but there was an error when I used npm run build again yesterday. The message is as follows:

function fromPath(obj, path) {
  return path.split(".").reduce((o, i) => o === Object(o) ? o[i] : o, obj);
}

searched for some solutions and tried nothing, and I looked at git"s submission history and didn"t find out the cause of the problem. Reviewing the operations of the past two days, it is possible to include the following:
1. Remember to delete a reference to lodash
2. Two days ago, I read an article that I wanted to modify several places in config/index.js through chrome debugging, but now they have all been restored

.

Please do not hesitate to give us your advice, thank you

Mar.20,2021

The < H2 > test is because the build will make an error after using https://github.com/KazanExpre. to complete automatically. During dev, build can browse normally, but build will make an error. I don't know how to solve the problem < / H2 >.

finally, it is solved by using import VueSimpleSuggest from 'vue-simple-suggest/dist/cjs', otherwise import VueSimpleSuggest from' vue-simple-suggest/dist/es6', will be used by default, but when build, it seems that there is an error in dealing with the arrow function. I don't know whether the problem is referenced by babel


https://blog.csdn.net/qq_39034363/article/details/85230213

Menu