import("../ripple") in type declaration files
See original GitHub issueThere 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 includes import("../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.json
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:10 (9 by maintainers)
Top Results From Across the Web
A quick introduction to “Type Declaration” files and adding ...
In this lesson, we are going to take a closer look at type declaration files which are one of the key ingredients of...
Read more >RippleModule - Ripple API - Kendo UI for Angular - Telerik
Represents the NgModule definition for the Ripple directive. Copy Code // Import the Ripple module import { RippleModule } from '@ ...
Read more >Could not find a declaration file for module 'vue-xxx'
js' implicitly has an 'any' type. ) Import module and register as 'treeselect':. import Treeselect from '@riophae/vue-treeselect';. Vue.
Read more >Ripple reactjs - npm
Component for react that creates a ripple effect similar to ... TypeScript icon, indicating that this package has built-in type declarations.
Read more >import - JavaScript - UDN Web Docs: MDN Backup
whether you declare them as such or not. The import statement cannot be used in embedded scripts unless such script has a type="module"...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Closing for #936