Where are the types for @svgr/core?
See original GitHub issueš Bug Report
Canāt find the types for @svgr/core.
To Reproduce
Use @svgr/core in a TypeScript file.
Expected behavior
The types should be included with the package.
Link to repl or repo (highly encouraged)
This code:
import svgr from '@svgr/core';
Leads to this error:
<source file>:3:18 - error TS7016: Could not find a declaration file for module '@svgr/core'. '.../node_modules/@svgr/core/lib/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/svgr__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@svgr/core';`
3 import svgr from '@svgr/core';
~~~~~~~~~~~~
System:
- OS: Windows 10 10.0.19042
- CPU: (4) x64 IntelĀ® Coreā¢ i7-6600U CPU @ 2.60GHz
- Memory: 6.82 GB / 15.86 GB
Binaries:
- Node: 14.15.0 - C:\Program Files\Node.js\node.EXE
- Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
- npm: 6.14.8 - C:\Program Files\Node.js\npm.CMD
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:9 (2 by maintainers)
Top Results From Across the Web
@svgr/core - npm
Start using @svgr/core in your project by running `npm i @svgr/core`. ... TypeScript icon, indicating that this package has built-in type ...
Read more >How to use the @svgr/core function in @svgr/core - Snyk
To help you get started, we've selected a few @svgr/core examples, based on popular ways it is used in public projects. Secure your...
Read more >@svgr/core v6.5.1 Bundlephobia
Size of @svgr/core v6.5.1 is 1.2 MB (minified), and 325.3 kB when compressed using GZIP. ... These may be different from the dependencies'...
Read more >SVGR - Transforms SVG into React Components. - SVGR
Powerful. SVGR handles all type of SVG and transforms it into a React component. Universal. SVGR is everywhere. Available online, inĀ ...
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 took a stab at this. If someone cares to make it a real package, feel free.
Still an issue AFAIK.