最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Uncaught TypeError:

网站源码admin41浏览0评论

Uncaught TypeError:

Uncaught TypeError:

我正在使用 webpack 使用 mevn 构建应用程序,但我遇到了这个错误 “未捕获的类型错误:_vue2.default 不是构造

{
  "name": "mevn-curso",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "dev": "nodemon src/index.js",
    "webpack": "webpack --mode development --watch"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "express": "^4.18.2",
    "mongoose": "^7.0.4",
    "morgan": "^1.10.0",
    "vue": "^3.2.47"
  },
  "devDependencies": {
    "babel-loader": "^9.1.2",
    "babel-preset-env": "^1.7.0",
    "vue-loader": "^17.1.0",
    "vue-template-compiler": "^2.7.14",
    "webpack": "^5.81.0",
    "webpack-cli": "^5.0.2"
  }
}

我尝试以不同的方式导入 vue 但它没有用

回答如下:

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论