Typescript support seems broken after 2.0.0 release
See original GitHub issueOn a new project I installed heroicons/react@latest (2.0.12). Trying to import like so:
import { ChevronDownIcon } from "@heroicons/react/solid";
and then yarn build
I get this error:
Type error: Could not find a declaration file for module '@heroicons/react/solid'. '.../node_modules/@heroicons/react/solid/index.js' implicitly has an 'any' type.
I reverted the library to 2.0.0 and the issue was the same. I reverted further to a previous project version (1.0.6) and the issue was fixed. Did the typescript support get dropped?
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
TypeScript 2.0 Support #234 - TypeStrong/typedoc - GitHub
If I try to use typedoc with nigthly build or typescript@next, it throw this: Error: Unknown optionstrictNullChecks.
Read more >Npm dependency conflict - typescript - Stack Overflow
I run Vue Cli and I added the Typescript plugin. I have several vulnerabilities. When I run npm audit fix it can't resolve...
Read more >Error about unsupported TS version while project is using ...
'You are using version of TypeScript 2.6.2 which is not supported; supported versions >=3.2.1'. Our package.json shows typescript version as ...
Read more >Changelog | Meteor API Docs
Mongo changes to support new embedded version, 5.0.5. Fix resolving npm deps of local packages when on different drive. PR. minimongo@1.8.0. Changes to ......
Read more >Release notes & updates – Azure CLI - Microsoft Learn
Learn about the latest Azure Command-Line Interface (CLI) release notes and ... update : Support edit nodepool label after creation; az aks create...
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 Free
Top 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
Still borked – doesn’t work for the following icons
@lack-of-gravitas Hey, this doesn’t look like a TypeScript issue, but rather just an icon name change from v1 to v2. The
XIcon
is nowXMarkIcon
, andMenuAlt2Icon
is nowBars3BottomLeftIcon
.You can see a list of all the icon name changes in our release notes here: https://github.com/tailwindlabs/heroicons/releases/tag/v2.0.0