nativescript-community / ui-material-components

Monorepo that contains all of the NativeScript Material Design plugins.
https://nativescript-community.github.io/ui-material-components/
Apache License 2.0
216 stars 80 forks source link

Nativescript 7.0 compatibility #173

Closed Upd4ting closed 4 years ago

Upd4ting commented 4 years ago

Since nativescript 7.0 i'm having theses issues

WARNING in ../node_modules/nativescript-material-core/core.js 143:3-29
"export 'backgroundInternalProperty' was not found in '@nativescript/core/ui/core/view'
 @ ../node_modules/nativescript-material-ripple/ripple.js
 @ ../node_modules/nativescript-material-ripple/vue/index.js
 @ ./main.ts
ERROR in ../node_modules/nativescript-material-core/cssproperties.js
Module not found: Error: Can't resolve '@nativescript/core/ui/core/properties/properties' in 'C:\Users\vulks\Downloads\meteor-nativescript-template\node_modules\nativescript-material-core'
 @ ../node_modules/nativescript-material-core/cssproperties.js 2:0-128 24:37-48 31:35-46 37:48-59 43:33-44 48:29-39 48:40-53 49:47-67
 @ ../node_modules/nativescript-material-ripple/ripple.js
 @ ../node_modules/nativescript-material-ripple/vue/index.js
 @ ./main.ts
WARNING in ../node_modules/nativescript-material-ripple/ripple.js 227:3-29
"export 'backgroundInternalProperty' was not found in '@nativescript/core/ui/page'
 @ ../node_modules/nativescript-material-ripple/vue/index.js
 @ ./main.ts
WARNING in ../node_modules/nativescript-material-ripple/ripple.js 228:10-36
"export 'backgroundInternalProperty' was not found in '@nativescript/core/ui/page'
 @ ../node_modules/nativescript-material-ripple/vue/index.js
 @ ./main.ts

Any idea?

farfromrefug commented 4 years ago

Can you share your package.json?

Upd4ting commented 4 years ago

Yeah sure

{
  "name": "XXX",
  "version": "1.0.0",
  "description": "XXX",
  "author": "XXX",
  "license": "MIT",
  "scripts": {
    "lint": "eslint . --ext=.ts,.js,.vue",
    "lint:fix": "eslint . --ext=.ts,.js,.vue --fix",
    "debug-android": "tns debug android --bundle --no-hmr",
    "debug-ios": "tns debug ios --bundle --no-hmr"
  },
  "lint-staged": {
    "*.{js,ts,vue}": "eslint"
  },
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged",
      "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
    }
  },
  "dependencies": {
    "@nativescript/core": "~7.0.0",
    "@nativescript/theme": "^2.3.3",
    "@nstudio/nativescript-checkbox": "^1.0.0",
    "@vue/devtools": "^5.3.3",
    "email-validator": "^2.0.4",
    "nativescript-carousel": "^6.1.1",
    "nativescript-connectivity-manager-plugin": "^0.0.5",
    "nativescript-material-ripple": "^3.3.0",
    "nativescript-menu": "^1.1.6",
    "nativescript-permissions": "^1.3.9",
    "nativescript-socket.io": "^0.11.1",
    "nativescript-socketio": "^3.3.1",
    "nativescript-toasty": "^3.0.0-alpha.2",
    "nativescript-tooltip": "^2.1.2",
    "nativescript-ui-chart": "^8.0.2",
    "nativescript-ui-listview": "^9.0.2",
    "nativescript-vue": "^2.6.1",
    "nativescript-vue-devtools": "^1.4.0",
    "nativescript-vue-fonticon": "^1.0.3",
    "nativescript-vue-navigator": "^1.2.0",
    "nativescript-vue-shadow": "^0.1.0",
    "nativescript-wifi-settings": "^1.1.2",
    "vue-class-component": "^7.2.5",
    "vue-property-decorator": "^9.0.0",
    "vuex": "^3.3.0"
  },
  "devDependencies": {
    "@babel/core": "^7.0.0",
    "@babel/preset-env": "^7.0.0",
    "@commitlint/cli": "^9.1.2",
    "@commitlint/config-conventional": "^9.1.2",
    "@nativescript/android": "7.0.0",
    "@nativescript/types": "7.0.0",
    "@nativescript/webpack": "~3.0.0",
    "@types/node": "^13.11.1",
    "@typescript-eslint/eslint-plugin": "^4.1.0",
    "@typescript-eslint/parser": "^4.1.0",
    "@vue/eslint-config-typescript": "^5.1.0",
    "babel-loader": "^8.1.0",
    "commitlint": "^9.1.2",
    "eslint": "^7.8.1",
    "eslint-config-prettier": "^6.11.0",
    "eslint-plugin-prettier": "^3.1.4",
    "eslint-plugin-vue": "^6.2.2",
    "husky": "^4.3.0",
    "lint-staged": "^10.3.0",
    "nativescript-vue-template-compiler": "^2.6.0",
    "node-sass": "^4.13.1",
    "prettier": "^2.1.1",
    "typescript": "^3.8.3",
    "vue": "^2.6.11",
    "vue-loader": "^15.9.1"
  },
  "commitlint": {
    "extends": [
      "@commitlint/config-conventional"
    ],
    "rules": {
      "scope-case": [
        2,
        "never",
        []
      ]
    }
  },
  "main": "main"
}
farfromrefug commented 4 years ago

OK you nneed to migrate nativescript-material-... To @nativescript-community/ui-material-...

Upd4ting commented 4 years ago

Working, thanks :)