Skip to content
This repository has been archived by the owner on Sep 22, 2020. It is now read-only.

NativeScript 7 and Angular 10 issue #40

Closed
MartinPenev opened this issue Sep 9, 2020 · 3 comments
Closed

NativeScript 7 and Angular 10 issue #40

MartinPenev opened this issue Sep 9, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@MartinPenev
Copy link

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 - NativeScript/NativeScript#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?

  • iOS/Android/Both - Both
  • iOS/Android versions
  • emulator or device. What type of device? - All

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

  • CLI: (run tns --version to fetch it)
  • Cross-platform modules: (check the 'version' attribute in the
    node_modules/tns-core-modules/package.json file in your project)
  • Runtime(s): (look for the "tns-android" and "tns-ios" properties in the package.json file of your project)
  • Plugin(s): (look for the version numbers in the package.json file of your
    project and paste your dependencies and devDependencies here)

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
Copy link
Owner

triniwiz commented Sep 9, 2020

This is currently in progress 🙂

@triniwiz triniwiz added the enhancement New feature or request label Sep 9, 2020
@MartinPenev
Copy link
Author

Thanks! 👍

@triniwiz
Copy link
Owner

Moved to a new home @nativescript/canvas

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants