原因:由于用vue-cli直接创建了vue 3的项目,而里面的生态并非都是最新版,vue.config.js中的代码如下,使用了vue 3的语法:
const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ transpileDependencies: true })
解决:输入 vue upgrade,一路向下,即可解决
- defineConfig TypeError function not isdefineconfig typeerror function not error defineconfig vue typeerror absolute uri not is getusermedia typeerror navigator function null is not searchlist typeerror function slice javascript typeerror uncaught function typeerror classname function taro3 typeerror function gitbook问题 typeerror function track vue3