nativescript-loading-indicator icon indicating copy to clipboard operation
nativescript-loading-indicator copied to clipboard

Cannot find name

Open jannomeister opened this issue 5 years ago • 4 comments

I'm using the latest version of NS

Screen Shot 2020-02-28 at 9 26 07 AM

jannomeister avatar Feb 28 '20 01:02 jannomeister

possible fix: https://github.com/nstudio/nativescript-loading-indicator/pull/39

jannomeister avatar Feb 28 '20 01:02 jannomeister

I've tested this via the Angular demo provided in this project, by bumping the versions to the latest version of NativeScript & NativeScript-Angular.

The compilation succeeds, all of the tests pass on both iOS and Android.

I've also attempted to recreate this in an external project using npm instead of the demo sourcing methods, these tests also failed to reproduce the issue you're seeing here.

I would suspect that you're using an old webpack config, or not depending on tns-core-modules or @nativescript/core.

Can you please provide a sample project that reproduces the issue you're seeing?

Codex- avatar Mar 03 '20 22:03 Codex-

Ah so the image shows the error pointing to native iOS/android types. Which are being used in this plugin/module, your project shouldn't be analyzing node_modules at all IMO, unless you want TS to analyze all of the node_modules for types, which is slower to do and you shouldn't really have a need to do this.

Just add skipLibCheck: true to your tsconfig of your project. I made a PR for this on the NS templates a couple months ago because they were still shipping this flag false which resulted in users encountering this issue a while back.

bradmartin avatar Mar 04 '20 02:03 bradmartin

thanks @bradmartin I'll try this one later :)

jannomeister avatar Mar 04 '20 02:03 jannomeister