Open CoooWeee opened 5 years ago
Confirm. With below config works fine:
"@angular/core": "^8.2.11",
"@nstudio/nativescript-checkbox": "^1.0.0",
"nativescript-angular": "^8.2.2",
"tns-core-modules": "^6.1.2",
With this config it didn't work:
"@angular/core": "^8.2.13",
"@nstudio/nativescript-checkbox": "^1.0.0",
"nativescript-angular": "^8.20.0",
"tns-core-modules": "^6.2.0",
same
The core team introduced a breaking change. That is why. The plugin will need to be updated.
@deoomen @CoooWeee @yonkoGH In your webpack.config.js change the alias to this:
alias: {
"~": appFullPath,
"nativescript-angular": "@nativescript/angular",
},
@DickSmith added your fix in my webpack.config.js but I'm still getting
ERROR in node_modules/@nstudio/nativescript-checkbox/angular/index.d.ts:2:35 - error TS2307: Cannot find module 'nativescript-angular/forms/value-accessors/base-value-accessor'.
2 import { BaseValueAccessor } from 'nativescript-angular/forms/value-accessors/base-value-accessor';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/nativescript-drop-down/angular/index.d.ts:2:35 - error TS2307: Cannot find module 'nativescript-angular/forms/value-accessors/base-value-accessor'.
2 import { BaseValueAccessor } from "nativescript-angular/forms/value-accessors/base-value-accessor";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Same issue over here.
looks like core team released a fix to export how it should be with 8.20.1
of ns-angular. I'd try updating your nativescript-angular dependency and also be sure your project has skipLibCheck: true
in your tsconfig since you don't typically need to analyze node_modules during builds.
the fix looks like it’s still sitting on a release branch and has not been merged into master (am I wrong?). I changed my “nativescript-angular” version to “^8.20.1” and got npm install error saying that version doesn’t exist
ah yea, possibly. I forget if they publish the nativescript-angular
package nightly or not. Might could try it from npm install nativescript-angular@next
doubtful they do that. If that doesn't work, you could point it to the git branch I believe to test it for now.
any update?
With latest angular version it seems not to work anymore.
My Packages:
Results in: