-
Notifications
You must be signed in to change notification settings - Fork 232
import("../ripple") in type declaration files #857
Comments
@ben-mckernan thanks for opening the issue. This is the
I see '@material/react-ripple', but no |
It is not at the top of the file but rather at the end of the second to last line, the line starting with It is cut off in your code snippet. Here is a link to the full file on npm https://unpkg.com/@material/react-button@0.12.1/dist/index.d.ts |
Confirmed. This is actually happening for all components that use the |
Still exists in 0.13.0 https://unpkg.com/@material/react-button@0.13.0/dist/index.d.ts |
@arichiv yes no one was able to work on this just yet. Do you have time for a PR? :) |
I walked right into that one. I should have time to write a test to detect this next week. If that uncovers a root cause I would fix it, but I may have to stop there. |
Sounds good! Anything is appreciated! |
Ping on review for #900 :-) |
Hey! Sorry I was out on vacation and will take a look shortly |
Closing for #936 |
There is an issue with the declaration files provided with v0.12.0 where any component that uses the
withRipple
HOC will have a declaration file that includesimport("../ripple")
. This causes our type checks to fail since it can't resolve the relative import.$ tsc node_modules/@material/react-button/dist/index.d.ts:21:4759 - error TS2307: Cannot find module '../ripple'.
The workaround for anyone having this issue is to add
"skipLibCheck": true
to your tsconfig.jsonThe text was updated successfully, but these errors were encountered: