我正在尝试将Vue-Filepond与 Nuxt-Bridge 一起使用。
我遵循了本指南,但是当我启动应用程序时,出现以下错误。
This dependency was not found:
* vue/dist/vue.esm in ./node_modules/vue-filepond/dist/vue-filepond.esm.js
这是我的 package.json:
{
"name": "project",
"private": true,
"engines": {
"node": "^16.0.0"
},
"scripts": {
"dev": "nuxi dev",
"build": "nuxi build",
"start": "node .output/server/index.mjs",
"generate": "nuxi generate",
"lint:js": "eslint --ext .js,.vue --ignore-path .eslintignore .",
"lint": "yarn lint:js"
},
"dependencies": {
"@nuxtjs/auth": "^4.9.1",
"@nuxtjs/axios": "^5.13.6",
"crypto-js": "^4.1.1",
"filepond": "^4.30.3",
"nuxt-edge": "latest",
"nuxt-i18n": "^6.28",
"vue": "^2.6.14",
"vue-filepond": "^6.0.3",
"vue-server-renderer": "^2.6.14",
"vue-template-compiler": "^2.6.14",
"vuetify": "^2.6.0",
"vuex": "^3.6.2",
"webpack": "^4.46.0"
},
"devDependencies": {
"@nuxt/bridge": "npm:@nuxt/bridge-edge",
"@nuxt/types": "^2.15.8",
"@nuxtjs/vuetify": "^1.12.1",
"babel-eslint": "^10.1.0",
"eslint": "7.32.0",
"eslint-config-airbnb-base": "14.2.1",
"eslint-config-prettier": "^8.3.0",
"eslint-loader": "^4.0.2",
"eslint-plugin-import": "2.25.3",
"eslint-plugin-prettier": "^3.4.1",
"eslint-plugin-vue": "^7.20.0"
}
}
当我只使用没有桥接的 Nuxt-2 时,一切正常。我尝试删除yarn.lock
,node_modules
和.nuxt
,但没有任何帮助。