Closed KirilOkun closed 5 years ago
@bearoutthere the latest version of nativescript-dev-webpack are handling these dependencies, and they should not be explicitly installed as dev dependencies. To resolve this run the update script which will remove the obsolete dependencies (and update the versions of the needed ones)
npm i nativescript-dev-webpack@latest --save-dev
./node_modules/.bin/update-ns-webpack --deps --configs
Note that passing the --configs
flag will force update your webpack.config.js
file so if you have some custom settings make sure to add them after the config files are updated.
Detailed upgrade instructions can be found here.
i don't get this
npm WARN awesome-typescript-loader@5.2.1 requires a peer of typescript@^2.7 || ^3 but none is installed. You must install peer dependencies yourself.
i already have latest version, and there are not 2.7
nativescript-dev-typescript is currently supporting TypeScript 2.72 - 2.9 ([here](https://github.com/NativeScript/nativescript-dev-typescript/blob/master/CHANGELOG.md))
. Version 3.x.x of TypeScript is not officially supported.
I've followed your suggestions here and in the upgrade instructions. I've also removed node_modules, hooks, and platforms. Upgraded NS and TS and then reinstalled everything. And ran the update script with --deps --configs options. Same result. Every time i run install or install another plugin i get the following warnings. What am I missing? Thank you for your help.
$ tns plugin add nativescript-textinputlayout
npm WARN awesome-typescript-loader@5.0.0 requires a peer of typescript@^2.7 but none is installed. You must install peer dependencies yourself.
npm WARN extract-text-webpack-plugin@3.0.2 requires a peer of webpack@^3.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/nativescript/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ nativescript-textinputlayout@2.0.6
added 1 package from 1 contributor and audited 21064 packages in 11.553s
found 7 vulnerabilities (6 low, 1 critical)
run `npm audit fix` to fix them, or `npm audit` for details
Successfully installed plugin nativescript-textinputlayout.
Here's my package.json:
{
"name": "com.appxxxxxxxxx",
"license": "SEE LICENSE IN <your-license-filename>",
"readme": "NativeScript Application",
"version": "0.1.0",
"nativescript": {
"id": "com.appxxxxxxxxxxx",
"tns-android": {
"version": "4.2.0"
}
},
"scripts": {
"lint": "tslint \"app/**/*.ts\""
},
"dependencies": {
"moment": "^2.22.2",
"nativescript": "^4.2.4",
"nativescript-cardview": "^3.1.0",
"nativescript-checkbox": "^3.0.3",
"nativescript-doorbell.io": "0.0.3",
"nativescript-feedback": "^1.1.2",
"nativescript-filterable-listpicker": "^2.2.3",
"nativescript-plugin-firebase": "^7.1.0",
"nativescript-purchase": "^2.0.5",
"nativescript-textinputlayout": "^2.0.6",
"nativescript-theme-core": "^1.0.4",
"nativescript-ui-dataform": "^3.5.2",
"nativescript-ui-listview": "^3.5.4",
"nativescript-ui-sidedrawer": "^3.5.2",
"tns-core-modules": "^4.2.1"
},
"devDependencies": {
"babel-traverse": "6.26.0",
"babel-types": "6.26.0",
"babylon": "6.18.0",
"lazy": "1.0.11",
"nativescript-dev-sass": "^1.6.0",
"nativescript-dev-typescript": "^0.7.4",
"nativescript-dev-webpack": "^0.15.1",
"tslint": "5.8.0",
"typescript": "^3.1.1"
}
}
I found the reason for the warning, https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/749#issuecomment-374549467
extract-text-webpack-plugin has been deprecated in favor of a different plugin (atleast when using webpack 4)
Issue Checklist
Tell us about the problem
Clean install throws 2 warnings:
I've seen the same warnings in the forum posts but there's no resolution.
Local environment
Project data
{ "name": "xxxxxxxx", "license": "SEE LICENSE IN",
"readme": "NativeScript Application",
"repository": "xxxxxxxxx",
"version": "0.1.0",
"nativescript": {
"id": "xxxxxxxxxx",
"tns-android": {
"version": "4.2.0"
}
},
"scripts": {
"lint": "tslint \"app/*/.ts\""
},
"dependencies": {
"ajv": "^6.5.4",
"nativescript-cardview": "^3.1.0",
"nativescript-checkbox": "^3.0.3",
"nativescript-doorbell.io": "0.0.3",
"nativescript-feedback": "^1.1.2",
"nativescript-plugin-firebase": "^7.1.0",
"nativescript-purchase": "^2.0.5",
"nativescript-theme-core": "^1.0.4",
"nativescript-toolbox": "^3.0.1",
"nativescript-ui-dataform": "^3.5.2",
"nativescript-ui-listview": "^3.5.4",
"nativescript-ui-sidedrawer": "^3.5.2",
"tns-core-modules": "^4.2.0"
},
"devDependencies": {
"awesome-typescript-loader": "^5.2.1",
"babel-traverse": "6.26.0",
"babel-types": "6.26.0",
"babylon": "6.18.0",
"extract-text-webpack-plugin": "^3.0.2",
"lazy": "1.0.11",
"nativescript-dev-sass": "^1.6.0",
"nativescript-dev-typescript": "^0.7.4",
"nativescript-dev-webpack": "^0.15.1",
"tslint": "5.8.0",
"typescript": "^3.1.1"
}
}