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] index.d.ts not copied under `node_modules/react-json-view/`

See original GitHub issue

After pulling the latest version (1.16.2), I still don’t see index.d.ts under node_modules/react-json-view/, nor is it under dist. Is there any steps missing? Could you look into this?

image

image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:24 (12 by maintainers)

github_iconTop GitHub Comments

3reactions
mac-s-gcommented, May 1, 2018

the deed is done! 🙌 https://unpkg.com/react-json-view@1.16.5/

the files key in package.json was gating my published files to only include /dist/ (and a few other whitelisted files). Now .npmignore should be the only files missing from the published module. see diff here: https://github.com/mac-s-g/react-json-view/commit/1ab70e2668837872e8db2a0ebfd996bcd5edcc11

thanks for working through that with me @franklixuefei ! let me know if 1.16.5 is working for you, so I can close this issue.

2reactions
mac-s-gcommented, May 1, 2018

fix is merged and published under 1.16.6

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeScript `.d.ts` file not copied to output, causing broken ...
Based on this issue (found in a web search), the behavior is intentional and I don't think there's another solution than renaming index.d.ts...
Read more >
Typescript error: index.d.ts file is missing · Issue #147 - GitHub
After upgrading the library from 1.2.3 to 1.2.5 I started to see hookrouter/dist/index.d.ts is not a module error. I think it's because *.d.ts...
Read more >
Documentation - Modules .d.ts - TypeScript
Create an index.d.ts in that folder, and copy the example in; See where your usage of the module breaks, and start to fill...
Read more >
Module Resolution - TypeScript
If that didn't work and if the module name is non-relative (and in the case ... /root/node_modules/@types/moduleB.d.ts; /root/node_modules/moduleB/index.ts ...
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