-
Notifications
You must be signed in to change notification settings - Fork 41
Add tsc task and fix most compile errors #16
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
Conversation
@@ -1,6 +1,7 @@ | |||
{ | |||
"compileOnSave": false, | |||
"compilerOptions": { | |||
"skipLibCheck": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lib check is mandatory
Agreed on skipLibCheck. I set it to false. I also did some more changes in tsconfig and now all compile errors but one is fixed. Specifically I had to change noResolve to false and module to commonjs. I did this by trial and error so not sure why. The remaining error is this:
I think it might be because there are no types installed for react-input-calendar? |
noResolve makes sense, because it strip out /// references to definition which are used in @types :) |
"declaration": false, | ||
"jsx": "react", | ||
"module": "es6", | ||
"module": "commonjs", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove this change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With few additional fixes I have resolved this issue, please do requested changes and I'll merge this cr
@@ -30,7 +31,7 @@ | |||
"allowJs": false, | |||
"allowSyntheticDefaultImports": true, | |||
"noImplicitUseStrict": false, | |||
"lib": ["es5", "es6", "es2016.array.include"], | |||
"lib": ["es5", "es6", "es2016.array.include", "dom", "es2016.array.include", "es2015.promise", "es2017.object", "es2015.iterable"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove doubled es2016.array.include
I think the requested changes are in now :-) |
@jonaskello merged, please check updated readme |
Fixes most problems in #15