nativescript-loading-indicator
nativescript-loading-indicator copied to clipboard
Cannot find name
I'm using the latest version of NS

possible fix: https://github.com/nstudio/nativescript-loading-indicator/pull/39
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?
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.
thanks @bradmartin I'll try this one later :)