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.

Types seems to not be included

See original GitHub issue

v3.0.0

Description

In the package.json, The types are listed as dist/types/index.d.ts. In the dist/, there is no types/ folder in the dist for me.

TS says it cannot find the types for the library.

Reproduction

  • yarn add use-shopping-cart

  • Try to use TS

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:20 (13 by maintainers)

github_iconTop GitHub Comments

3reactions
Joran-Dobcommented, Aug 30, 2021

Running into the same issue, auto complete works when adding /react but does not compile. And without /react it does not provide autocomplete and the following error: Module '"use-shopping-cart"' has no exported member 'CartProvider'.ts(2305)

on version 3.0.3

1reaction
dayhaysooscommented, Dec 28, 2021

@adamwdennis instant merged

Read more comments on GitHub >

github_iconTop Results From Across the Web

Personality disorders - Symptoms and causes - Mayo Clinic
A personality disorder is a mental disorder involving a rigid and unhealthy pattern of thinking, functioning and behaving.
Read more >
Getting "type or namespace name could not be found" but ...
When building the solution I was getting the same error (type or namespace ' ' could not be found). Below it I saw...
Read more >
Outlook blocked access to the following potentially unsafe ...
This article describes how to open a blocked attachment, and what types of attachments ... the attachment is not included in the forwarded...
Read more >
Infant-parent attachment: Definition, types, antecedents ... - NCBI
Attachment is one specific and circumscribed aspect of the relationship between a child and caregiver that is involved with making the child safe,...
Read more >
Types of Learning Disabilities
Learning disabilities should not be confused with learning problems which are ... perfectly “normal” and seems to be a very bright and intelligent...
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