Getting below error after upgraded to 19.2 from 19.1
This dependency was not found: friendly-errors 19:50:40
friendly-errors 19:50:40
* vue-class-component in ./node_modules/@syncfusion/ej2-vue-base/src/component-base.js, ./node_modules/@syncfusion/ej2-vue-grids/src/grid/columns.directive.js
Getting the error in all syncfusion components.
My current package json is this. The error completely goes away if syncfusion components are downgraded to 19.1
{
"name": "test_syncfusion",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start",
"generate": "nuxt generate",
"lint:js": "eslint --ext \".js,.vue\" --ignore-path .gitignore .",
"lint": "yarn lint:js"
},
"dependencies": {
"@nuxtjs/axios": "^5.13.1",
"@syncfusion/ej2-data": "19.2",
"@syncfusion/ej2-vue-dropdowns": "19.2",
"@syncfusion/ej2-vue-grids": "19.2",
"core-js": "^3.9.1",
"nuxt": "^2.15.7"
},
"devDependencies": {
"@nuxtjs/eslint-config": "^6.0.0",
"@nuxtjs/eslint-module": "^3.0.2",
"@nuxtjs/vuetify": "^1.11.3",
"babel-eslint": "^10.1.0",
"eslint": "^7.22.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-nuxt": "^2.0.0",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-vue": "^7.7.0",
"prettier": "^2.2.1"
}
}
Package.json
{
"name": "quickstart",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"@syncfusion/ej2-vue-grids": "19.2",
"core-js": "^3.6.5",
"vue": "^3.0.0",
"vue-class-component": "^8.0.0-rc.1"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"@vue/compiler-sfc": "^3.0.0",
"babel-eslint": "^10.1.0",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^7.0.0"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/vue3-essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "babel-eslint"
},
"rules": {
"no-console": 1,
"no-debugger": 1
}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead"
]
}
|
So 19.2 is only for vue 3 applications? I am still using vue 2 and not planning to update to vue3 anytime soon. I am using below nuxt version which uses vue 2.
nuxt": "^2.15.7
"dependencies": {
"@syncfusion/ej2-vue-grids": "^19.2.47",
"vue": "^2.5.11",
"vue-class-component": "^8.0.0-rc.1" //install the vue-class-component
}
|
Tried the same, but getting below error. I created a sample app here https://github.com/pilotstuff/syncfusion-test
Same error after installing 19.2.55
@syncfusion/ej2-vue-base@19.2.55 requires a peer of vue-class-component@^8.0.0-rc.1 but none is installed. You must install peer dependencies yourself.
Package.Json
{
"name": "quickstart",
"description": "A Vue.js project",
"version": "1.0.0",
"author": "",
"license": "MIT",
"private": true,
"scripts": {
"dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot",
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules"
},
"dependencies": {
"@syncfusion/ej2-vue-grids": "^19.2.55",
"vue": "^2.5.11",
"vue-class-component": "^8.0.0-rc.1"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
],
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-preset-env": "^1.6.0",
"babel-preset-stage-3": "^6.24.1",
"cross-env": "^5.0.5",
"css-loader": "^0.28.7",
"file-loader": "^1.1.4",
"vue-loader": "^13.0.5",
"vue-template-compiler": "^2.4.4",
"webpack": "^3.6.0",
"webpack-dev-server": "^2.9.1"
}
}
|
I used attached example
and it works only building by yarn.
With npm I was getting build error
npm ERR
! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR!While resolving: quickstart@1.0.0
npm ERR!Found: vue@2.6.14
npm ERR! node_modules/vue
npm ERR! vue@"^2.5.11"from the root project
npm ERR!
npm ERR!Couldnot resolve dependency:
npm ERR! peer vue@"^3.0.0"from vue-class-component@8.0.0-rc.1
npm ERR! node_modules/vue-class-component
npm ERR! vue-class-component@"^8.0.0-rc.1"from the root project
npm ERR!
npm ERR!Fix the upstream dependency conflict,orretry
npm ERR!this command with--force,or--legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
Then
I modify the package.json with libs i'm using in my project.
{
"name": "quickstart",
"description": "A Vue.js project",
"version": "1.0.0",
"author": "",
"license": "MIT",
"private": true,
"scripts": {
"dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot",
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules"
},
"dependencies": {
"vue-class-component": "^8.0.0-rc.1",
"@babel/polyfill": "^7.4.4",
"@fortawesome/fontawesome-free": "^5.13.0",
"@mdi/font": "^3.6.95",
"@popperjs/core": "^2.5.4",
"@syncfusion/ej2-base": "^19.2.0",
"@syncfusion/ej2-vue-buttons": "^19.2.0",
"@syncfusion/ej2-vue-calendars": "^19.2.0",
"@syncfusion/ej2-vue-dropdowns": "^19.2.0",
"@syncfusion/ej2-vue-grids": "^19.2.55",
"@syncfusion/ej2-vue-inputs": "^19.2.0",
"@syncfusion/ej2-vue-navigations": "^19.2.0",
"apexcharts": "^3.22.2",
"axios": "^0.21.1",
"axios-mock-adapter": "^1.19.0",
"bootstrap": "^4.5.0",
"bootstrap-icons": "^1.5.0",
"bootstrap-icons-vue": "^0.7.0",
"bootstrap-vue": "^2.19.0",
"clipboard": "^2.0.6",
"core-js": "^3.7.0",
"deepmerge": "^4.2.2",
"highlight.js": "^9.18.1",
"line-awesome": "^1.3.0",
"moment-timezone": "^0.5.31",
"object-path": "^0.11.4",
"perfect-scrollbar": "^1.5.0",
"portal-vue": "^2.1.7",
"roboto-fontface": "*",
"secure-ls": "^1.2.6",
"socicon": "^3.0.5",
"sweetalert2": "^9.10.12",
"tooltip.js": "^1.3.2",
"vue": "2.6.12",
"vue-apexcharts": "^1.5.3",
"vue-axios": "^2.1.4",
"vue-highlight.js": "^3.1.0",
"vue-i18n": "^8.17.4",
"vue-inline-svg": "^1.3.0",
"vue-property-decorator": "^8.4.2",
"vue-router": "^3.4.9",
"vue2-perfect-scrollbar": "^1.5.0",
"vuedraggable": "^2.24.3",
"vuejs-dialog": "^1.4.2",
"vuelidate": "^0.7.6",
"vuetify": "^2.3.16",
"vuex": "^3.3.0",
"vuex-persistedstate": "^3.0.1"
},
"devDependencies": {
"@typescript-eslint/parser": "^2.33.0",
"@vue/cli-plugin-babel": "^4.3.1",
"@vue/cli-plugin-eslint": "^4.3.1",
"@vue/cli-service": "^4.3.1",
"@vue/eslint-config-prettier": "^4.0.1",
"@vue/eslint-config-typescript": "^5.0.2",
"babel-eslint": "^10.0.3",
"eslint": "^5.16.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-vue": "^5.0.0",
"sass": "1.32.13",
"sass-loader": "^8.0.2",
"typescript": "~3.9.3",
"vue-cli-plugin-vuetify": "^2.0.5",
"vue-template-compiler": "2.6.12",
"vuetify-loader": "^1.3.0",
"webpack-cli": "^3.3.11",
"webpack-messages": "^2.0.4",
"cross-env": "^5.0.5",
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-preset-env": "^1.6.0",
"babel-preset-stage-3": "^6.24.1",
"css-loader": "^0.28.7",
"file-loader": "^1.1.4",
"vue-loader": "^13.0.5",
"webpack": "^3.6.0",
"webpack-dev-server": "^2.9.1",
"webpack-rtl-plugin": "^2.0.0"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
],
"_devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-preset-env": "^1.6.0",
"babel-preset-stage-3": "^6.24.1",
"cross-env": "^5.0.5",
"css-loader": "^0.28.7",
"file-loader": "^1.1.4",
"vue-loader": "^13.0.5",
"vue-template-compiler": "^2.4.4",
"webpack": "^3.6.0",
"webpack-dev-server": "^2.9.1"
}
}
Other code stay the same, after that I start getting vue3 related warnings in console like this:
WARNING in ./node_modules/vue-class-component/dist/vue-class-component.esm-bundler.js
387:27-30 "export 'ref' was not found in 'vue'
@ ./node_modules/vue-class-component/dist/vue-class-component.esm-bundler.js
@ ./node_modules/@syncfusion/ej2-vue-grids/src/grid/columns.directive.js
@ ./node_modules/@syncfusion/ej2-vue-grids/src/index.js
@ ./node_modules/@syncfusion/ej2-vue-grids/index.js
@ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/App.vue
@ ./src/App.vue
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js
WARNING in ./node_modules/vue-class-component/dist/vue-class-component.esm-bundler.js
402:35-44 "export 'proxyRefs' was not found in 'vue'
@ ./node_modules/vue-class-component/dist/vue-class-component.esm-bundler.js
@ ./node_modules/@syncfusion/ej2-vue-grids/src/grid/columns.directive.js
@ ./node_modules/@syncfusion/ej2-vue-grids/src/index.js
@ ./node_modules/@syncfusion/ej2-vue-grids/index.js
@ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/App.vue
@ ./src/App.vue
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js
WARNING in ./node_modules/vue-class-component/dist/vue-class-component.esm-bundler.js
407:31-40 "export 'proxyRefs' was not found in 'vue'
@ ./node_modules/vue-class-component/dist/vue-class-component.esm-bundler.js
@ ./node_modules/@syncfusion/ej2-vue-grids/src/grid/columns.directive.js
@ ./node_modules/@syncfusion/ej2-vue-grids/src/index.js
@ ./node_modules/@syncfusion/ej2-vue-grids/index.js
@ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/App.vue
@ ./src/App.vue
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js
Can you let me know how fix them, and is there way to stay on vue2
Firstly the goal to keep vue version at ^2.6.12 .
I tried to update to ^19.2.60 for all packages.
The example with simple grid project i pasted before is worked well. But in real project where there used a lot of different syncfusion components, getting several errors on build or open project in browser.
warning in ./node_modules/@syncfusion/ej2-vue-navigations/src/menu/menu.component.js
"export 'Options' was not found in 'vue-class-component'
warning in ./node_modules/@syncfusion/ej2-vue-navigations/src/menu/items.directive.js
"export 'Vue' (imported as 'Vue3') was not found in 'vue-class-component'
More detailed error is in browser
Uncaught TypeError: Object(...) is not a function
at eval (webpack-internal:///./node_modules/@syncfusion/ej2-vue-dropdowns/src/drop-down-list/dropdownlist.component.js:208)
at eval (webpack-internal:///./node_modules/@syncfusion/ej2-vue-dropdowns/src/drop-down-list/dropdownlist.component.js:215)
at Module../node_modules/@syncfusion/ej2-vue-dropdowns/src/drop-down-list/dropdownlist.component.js (chunk-vendors.js:6505)
at __webpack_require__ (app.js:854)
at fn (app.js:151)
at eval (webpack-internal:///./node_modules/@syncfusion/ej2-vue-dropdowns/src/index.js:57)
at Module../node_modules/@syncfusion/ej2-vue-dropdowns/src/index.js (chunk-vendors.js:6529)
at __webpack_require__ (app.js:854)
at fn (app.js:151)
at eval (webpack-internal:///./node_modules/@syncfusion/ej2-vue-dropdowns/index.js:2)
So please let me know how solve ej2-vue-navigations issues for vue2.
I still getting same problem after update based on "how-to/update-npm-package/" manual.
Attached package json, and large npm log with notices like that:
Please let me know how I can fix that issue?
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: vue-class-component@8.0.0-rc.1
npm WARN Found: vue@2.6.12
npm WARN node_modules/vue
npm WARN vue@"2.6.12" from the root project
npm WARN 15 more (portal-vue, vue-axios, vue-class-component, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer vue@"^3.0.0" from vue-class-component@8.0.0-rc.1
npm WARN node_modules/@syncfusion/ej2-vue-buttons/node_modules/vue-class-component
npm WARN peer vue-class-component@"^8.0.0-rc.1" from @syncfusion/ej2-vue-base@19.2.60
npm WARN node_modules/@syncfusion/ej2-vue-buttons/node_modules/@syncfusion/ej2-vue-base
npm WARN
npm WARN Conflicting peer dependency: vue@3.2.19
npm WARN node_modules/vue
npm WARN peer vue@"^3.0.0" from vue-class-component@8.0.0-rc.1
npm WARN node_modules/@syncfusion/ej2-vue-buttons/node_modules/vue-class-component
npm WARN peer vue-class-component@"^8.0.0-rc.1" from @syncfusion/ej2-vue-base@19.2.60
npm WARN node_modules/@syncfusion/ej2-vue-buttons/node_modules/@syncfusion/ej2-vue-base
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: vue-class-component@8.0.0-rc.1
npm WARN Found: vue@2.6.12
npm WARN node_modules/vue
npm WARN vue@"2.6.12" from the root project
npm WARN 15 more (portal-vue, vue-axios, vue-class-component, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer vue@"^3.0.0" from vue-class-component@8.0.0-rc.1
npm WARN node_modules/@syncfusion/ej2-vue-calendars/node_modules/vue-class-component
npm WARN peer vue-class-component@"^8.0.0-rc.1" from @syncfusion/ej2-vue-base@19.2.60
npm WARN node_modules/@syncfusion/ej2-vue-calendars/node_modules/@syncfusion/ej2-vue-base
npm WARN
npm WARN Conflicting peer dependency: vue@3.2.19
npm WARN node_modules/vue
npm WARN peer vue@"^3.0.0" from vue-class-component@8.0.0-rc.1
npm WARN node_modules/@syncfusion/ej2-vue-calendars/node_modules/vue-class-component
npm WARN peer vue-class-component@"^8.0.0-rc.1" from @syncfusion/ej2-vue-base@19.2.60
npm WARN node_modules/@syncfusion/ej2-vue-calendars/node_modules/@syncfusion/ej2-vue-base
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: vue-class-component@8.0.0-rc.1
npm WARN Found: vue@2.6.12
npm WARN node_modules/vue
npm WARN vue@"2.6.12" from the root project
npm WARN 15 more (portal-vue, vue-axios, vue-class-component, ...)
npm WARN
While resolving: vue-class-component@8.0.0-rc.1
npm WARN Found: vue@2.6.12
npm WARN node_modules/vue
npm WARN vue@"2.6.12" from the root project
npm WARN 12 more (vue-axios, vue-class-component, vuetify, vuex, ...)
As you see I have a lot modules that does not support vue-class-component@8.0.0-rc.1 and require another version. Have you even tried to run npm install with package.json I've attached in my previous message?
Does syncfussion still support vue 2.x with its modules or you drop its usage with very limited nearly zero level dependencies with vue without any support of such modules like vuex, vue-bootstrap, vuetify?
Package.json
"dependencies": {
"@nuxtjs/axios": "^5.13.6",
"@syncfusion/ej2-vue-grids": "^19.2.62",
"@syncfusion/ej2-base": "^19.2.60",
"@syncfusion/ej2-vue-buttons": "^19.2.60",
"@syncfusion/ej2-vue-calendars": "^19.2.62",
"@syncfusion/ej2-vue-dropdowns": "^19.2.62",
"@syncfusion/ej2-vue-inputs": "^19.2.60",
"@syncfusion/ej2-vue-navigations": "^19.2.62",
"core-js": "^3.15.1",
"nuxt": "^2.15.7",
"vue-class-component": "^8.0.0-rc.1",
"apexcharts": "^3.22.2",
"axios": "^0.21.1",
"axios-mock-adapter": "^1.19.0",
"bootstrap": "^4.5.0",
"bootstrap-icons": "^1.5.0",
"bootstrap-icons-vue": "^0.7.0",
"bootstrap-vue": "^2.19.0",
"clipboard": "^2.0.6",
"deepmerge": "^4.2.2",
"highlight.js": "^9.18.1",
"line-awesome": "^1.3.0",
"moment-timezone": "^0.5.31",
"object-path": "^0.11.4",
"perfect-scrollbar": "^1.5.0",
"portal-vue": "^2.1.7",
"roboto-fontface": "*",
"secure-ls": "^1.2.6",
"socicon": "^3.0.5",
"sweetalert2": "^9.10.12",
"tooltip.js": "^1.3.2",
"vue": "2.6.14",
"vue-apexcharts": "^1.5.3",
"vue-axios": "^2.1.4",
"vue-highlight.js": "^3.1.0",
"vue-i18n": "^8.17.4",
"vue-inline-svg": "^1.3.0",
"vue-property-decorator": "^8.4.2",
"vue-router": "^3.4.9",
"vue2-perfect-scrollbar": "^1.5.0",
"vuedraggable": "^2.24.3",
"vuejs-dialog": "^1.4.2",
"vuelidate": "^0.7.6",
"vuetify": "^2.3.16",
"vuex": "^3.3.0",
"vuex-persistedstate": "^3.0.1"
}
|