question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

import("../ripple") in type declaration files

See original GitHub issue

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 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:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
arichivcommented, May 31, 2019

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.

0reactions
moog16commented, Jun 17, 2019

Closing for #936

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found