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.

Typescript support seems broken after 2.0.0 release

See original GitHub issue

On 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:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
lack-of-gravitascommented, Nov 19, 2022

Still borked – doesn’t work for the following icons

image

0reactions
reininkcommented, Nov 30, 2022

@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 now XMarkIcon, and MenuAlt2Icon is now Bars3BottomLeftIcon.

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

Read more comments on GitHub >

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

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