triniwiz / nativescript-canvas-plugin

The source is now managed at https://github.com/NativeScript/canvas
Apache License 2.0
31 stars 5 forks source link

NativeScript 7 and Angular 10 issue #40

Closed MartinPenev closed 4 years ago

MartinPenev commented 4 years ago

Make sure to check the demo app(s) for sample usage

Make sure to check the existing issues in this repository

If the demo apps cannot help and there is no issue for your problem, tell us about it

First of all - Thank you for the wonderful plugin! Now about the issue - we are unable to use it with the new NativeScript 7 and Angular 10. According to this thread - https://github.com/NativeScript/NativeScript/issues/8757 - most likely the error happens because it targets ES5.

Here is the error:

ERROR in node_modules/nativescript-canvas-plugin/angular/index.d.ts:1:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class.

This likely means that the library (nativescript-canvas-plugin/angular) which declares TNSCanvasModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.

1 export declare class TNSCanvasModule { ...

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

Use it in NS7 and Angular 10

Is there any code involved?

triniwiz commented 4 years ago

This is currently in progress 🙂

MartinPenev commented 4 years ago

Thanks! :+1:

triniwiz commented 4 years ago

Moved to a new home @nativescript/canvas