Comments (7)
This is fixed in 2.0.3
now 👍
from nativescript-checkbox.
Hey @bradmartin thanks for quick respond, its currently working fine with ngcc file which is fine for me for now. Its just that is the only plugin that needs the ngcc file in my projects, thats why I asked. Take your time fixing it, no rush.
Thanks!
from nativescript-checkbox.
Would love to drop this if it's indeed no longer needed for ivy compat. I'm not sure how to actually handle this currently. So if you have time for a PR that would be great.
from nativescript-checkbox.
Could you please show your ngcc.config.js?
I'm trying this file https://github.com/nstudio/nativescript-checkbox/blob/master/demo-ng/ngcc.config.js
ERROR in ../node_modules/@nstudio/nativescript-checkbox/__ivy_ngcc__/angular/index.js
Module not found: Error: Can't resolve '../checkbox' in '<..>/angular-test/node_modules/@nstudio/nativescript-checkbox/__ivy_ngcc__/angular'
@ ../node_modules/@nstudio/nativescript-checkbox/__ivy_ngcc__/angular/index.js 21:49-71
@ ./app/home/home.module.ts
@ ./app/app.module.ts
@ ./main.tns.ts
"@nativescript/core": "~7.0.0" with angular 10.
from nativescript-checkbox.
My ngcc.config.js has this:
module.exports = {
packages: {
'@nstudio/nativescript-checkbox': {
entryPoints: {
angular: {
override: {
main: './index.js',
typings: './index.d.ts',
},
ignoreMissingDependencies: true,
},
},
ignorableDeepImportMatchers: [
/tns-core-modules\//,
/@nativescript\/core\//,
/@nativescript\/angular\//
],
},
}
}
My package.json dependencies looks like this:
"dependencies": {
"@angular/animations": "~10.1.0",
"@angular/common": "~10.1.0",
"@angular/compiler": "~10.1.0",
"@angular/core": "~10.1.0",
"@angular/forms": "~10.1.0",
"@angular/platform-browser": "~10.1.0",
"@angular/platform-browser-dynamic": "~10.1.0",
"@angular/router": "~10.1.0",
"@nativescript-community/drawingpad": "~4.0.0",
"@nativescript/angular": "~10.0.0",
"@nativescript/appversion": "~2.0.0",
"@nativescript/background-http": "~5.0.0",
"@nativescript/camera": "~5.0.2",
"@nativescript/core": "7.0.8",
"@nativescript/datetimepicker": "^2.0.3",
"@nativescript/directions": "~2.0.0",
"@nativescript/email": "~2.0.0",
"@nativescript/geolocation": "~7.0.0",
"@nativescript/imagepicker": "~1.0.0",
"@nativescript/iqkeyboardmanager": "~2.0.0",
"@nativescript/webpack": "~3.0.5",
"@nstudio/nativescript-checkbox": "~2.0.2",
"@nstudio/nativescript-loading-indicator": "~4.0.0",
"@proplugins/nativescript-dom": "~2.2.3",
"@proplugins/nativescript-drop-down": "~9.0.0",
"@proplugins/nativescript-globalevents": "~1.4.4",
"@proplugins/nativescript-orientation": "~2.5.0",
"@proplugins/nativescript-photo-editor": "~5.0.0",
"moment": "~2.24.0",
"nativescript-barcodescanner": "~4.0.1",
"nativescript-feedback": "~2.0.0",
"nativescript-inappbrowser": "~2.3.0",
"nativescript-mediafilepicker": "~3.0.1",
"nativescript-numeric-keyboard": "~5.0.0",
"nativescript-pdf-view": "~2.4.3",
"nativescript-phone": "~2.0.0",
"nativescript-theme-core": "~1.0.6",
"nativescript-ui-calendar": "~7.0.2",
"nativescript-ui-chart": "~8.0.2",
"nativescript-ui-listview": "~9.0.2",
"nativescript-ui-sidedrawer": "~9.0.3",
"nativescript-videoplayer": "~5.0.1",
"nativescript-videorecorder": "~3.0.0-beta.6",
"reflect-metadata": "~0.1.12",
"rxjs": "^6.6.0",
"zone.js": "~0.11.1"
},
"devDependencies": {
"@angular/compiler-cli": "~10.1.0",
"@nativescript/android": "7.0.0",
"@nativescript/ios": "7.0.0",
"@ngtools/webpack": "~10.1.0",
"codelyzer": "~6.0.0",
"copy-webpack-plugin": "6.0.3",
"terser-webpack-plugin": "2.2.0",
"typescript": "~3.9.5",
"webpack": "4.43.0",
"webpack-cli": "^3.3.12"
},
I hope this helps.
from nativescript-checkbox.
Any updates here? I am using the same ngcc.config.js but still getting the error as mentioned before.
from nativescript-checkbox.
@Mister-N I got it! Take a look at node_modules/@nstudio/nativescript-checkbox/__ivy_ngcc__/angular/index.js
. Edit Line 21 to the following:
registerElement('CheckBox', function () { return require('../../checkbox').CheckBox; });
(add ../
to require)
This is not a great solution but it works for now until its fixed.
from nativescript-checkbox.
Related Issues (20)
- Checkbox after navigate back HOT 1
- Checkbox alignment problem on IOS HOT 7
- Class color is not applied to label HOT 3
- Tap on checkbox text - IOS HOT 2
- Unstable behaviour when used in an iterator like v-for HOT 3
- Change delay animation
- Text wrap HOT 1
- could not be resolved to an NgModule class. - Error in compile with Ivy - Angular 9 HOT 9
- Is this plugin compatible with nativescript 7? HOT 6
- font size of others elements get overrided HOT 4
- Angular Demo HOT 6
- TypeError: Class constructor BaseValueAccessor cannot be invoked without 'new' HOT 1
- Changing the color of tick in ios HOT 1
- viewModel update doesn't toggle the checkbox
- Crash in Android device when adding nativescript-checkbox to a Nativescript 8.2.2 project HOT 2
- Adding background-color causes crash on Android with nativescript 8.2.2
- More examples for vue
- TintColor on native Image
- 'Nativescript' spelled 'Nativecript' in various places
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-checkbox.