Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package dependencies and The inferred type of ... cannot be named without a reference to ... #36773

Open
zeworks opened this issue Feb 13, 2020 · 2 comments
Labels
Needs Investigation This issue needs a team member to investigate its status.
Milestone

Comments

@zeworks
Copy link

zeworks commented Feb 13, 2020

Hello, as a POC, I created a repository dedicated to this issue, to show how it is happening!
Repository: https://github.com/nogueira7egend/ts-symlink-error/

Please check it and follow the instructions that are on README!
Best regards

TypeScript Version: 3.7.5

Actual behavior:
Captura de ecrã 2020-02-04, às 17 45 45

Playground Link: https://github.com/nogueira7egend/ts-symlink-error/

Related Issues: #29808

@Adidi
Copy link

Adidi commented Mar 1, 2020

I had the same issue and i solved it by changing the name of some declaration file d.ts to the actual name of the component I am trying to add types too so in my case it was:
before: @types/styled.d.ts
after @types/styled-components.d.ts
where styled-components is the full npm package name
and the error is gone

@RyanCavanaugh RyanCavanaugh added the Needs Investigation This issue needs a team member to investigate its status. label Mar 10, 2020
@RyanCavanaugh RyanCavanaugh added this to the Backlog milestone Mar 10, 2020
@justinbhopper
Copy link

@Adidi This happens even without local d.ts files. Please see OP's playground example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Investigation This issue needs a team member to investigate its status.
Projects
None yet
Development

No branches or pull requests

4 participants