Skip to content

Is 'skipLibCheck' necessary? #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
DanielRosenwasser opened this issue Mar 1, 2018 · 1 comment
Open

Is 'skipLibCheck' necessary? #8

DanielRosenwasser opened this issue Mar 1, 2018 · 1 comment

Comments

@DanielRosenwasser
Copy link

https://github.com/TheOriginalJosh/nativescript-vue-typescript-seed/blob/be8c82455718760be8695b9b40f7d9b1e020793a/tsconfig.json#L8

I've heard it's used for NativeScript with Angular because the API surface area is so large; is that the intent here too?

@JoshDSommer
Copy link
Owner

I added this mainly because without it I'm getting errors in Vue-Routers typings. I figured it was fine going forward since typically with a lot of NativeScript projects we add tns-platform-declaration which add the very large api surface area you spoke of and slow down compilation.

this is the error i was getting with vue-router

node_modules/vue-router/types/router.d.ts(4,35): error TS2304: Cannot find name 'Vue'.
node_modules/vue-router/types/router.d.ts(13,43): error TS2304: Cannot find name 'Vue'.
node_modules/vue-router/types/router.d.ts(19,8): error TS2304: Cannot find name 'Vue'.
node_modules/vue-router/types/router.d.ts(93,25): error TS2304: Cannot find name 'Vue'.
node_modules/vue-router/types/vue.d.ts(17,13): error TS2428: All declarations of 'ComponentOptions' must have identical type parameters.
node_modules/vue-router/types/vue.d.ts(17,40): error TS2304: Cannot find name 'Vue'.

node_modules/vue/types/options.d.ts(53,18): error TS2428: All declarations of 'ComponentOptions' must have identical type parameters.

I had read about an error with versions typings. I thought about upgrading to the latest version 3+, which I believe will fix this, but I'm not sure about it's compatibility with NativeScript-Vue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants