-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Enable strict mode #13
Comments
Thanks for raise this, we will look into this. Currently having a big backlog for development, need find some time to address this. A PR is also really welcome :) |
I've got this working so that: * TypeScript files can be added to folder, and they will be compiled as part of the build system * TypeScript files can import JavaScript files * JavaScript files can import TypeScript files * Missing types can be added in `dependencies.d.ts` Here's what doesn't work yet: - [ ] The @keystonehq/ur-registry has type issues, which is causing the build system to fail. It seems that the authors have not decided to turn on strict mode, whereas we are using strict mode. There is an open issue around that here: <KeystoneHQ/ur-registry#13>. We probably need to lead the charge on this and help them out. We have connections to the Keystone devs so we could probably ping them directly when we have the work done.
We are in the process of converting MetaMask into TypeScript and we are getting this error too. Upon further investigation, it seems like this package contains both |
@mcmire We (the AirGap team) are currently not working on this. We disabled strict mode temporarily in one of our modules to make it work. We have it in our backlog to create a PR here, but I don't think we will get to it in the next few weeks. I'm sure the Keystone team would be happy if you could take a look and create a PR. |
Do we think this is fixed now? I noticed this commit come through a while back: 63f6896#diff-b55cdbef4907b7045f32cc5360d48d262cca5f94062e353089f189f4460039e0 |
I'm trying to integrate this package into AirGap, but I'm running into a lot of build issues after including this package. They seem to be mostly related to strict mode, which we have enabled.
The first error that appears is:
Setting
"strictMetadataEmit": false
seems to fix this, but is not ideal.I'm not sure what exactly the problem is, but it might be this: https://github.com/KeystoneHQ/ur-registry/blob/main/src/ScriptExpression.ts#L4-L5
Maybe you could instead use a getter for those? See https://stackoverflow.com/questions/57594723/angular-metadata-collected-contains-an-error-that-will-be-reported-at-runtime
After the above error is fixed, I get a lot of errors related to strict mode:
To get rid of those errors, we would have to disable strict mode in our project.
I think you will be able to reproduce most of those errors if you enable strict mode in your tsconfig.json. We have the following settings:
The text was updated successfully, but these errors were encountered: