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.

Cannot find module '../../package.json'

See original GitHub issue
Error in E:\xxx\node_modules\antd\lib\version\index.d.ts
(1,25): error TS2307: Cannot find module '../../package.json'.

The latest version2.7.2 doesn’t work with TypeScript project due to the version Component has import a package.json file.

cc @afc163 This need fixed or try another way export version info. TypeScript can’t understand json file module at this time,may be it will support it in the future.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
afc163commented, Feb 23, 2017

I forgot index.d.ts. 😓

0reactions
lock[bot]commented, May 2, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

Read more comments on GitHub >

github_iconTop Results From Across the Web

6 - Stack Overflow
There are a lot, but I can't seem to find a solution for this. I've already deleted node_modules folder and package-lock.json file from...
Read more >
cannot find module [Node npm Error Solved] - freeCodeCamp
How to Fix the "cannot find module" Error · delete the node modules folder by running rm -rf node_modules · delete package.lock.json file...
Read more >
Error: Cannot find module '/package.json' · Issue #1353 - GitHub
Dashboard app unable to start, displaying error message. After starting the Cube.js development server $ npm run dev Navigate to "Dashboard ...
Read more >
Error: Cannot find module in JavaScript [SOLVED]
We can solve Error: Cannot find module by installing the missing module. We can use npm tool to install the mising module.
Read more >
package.json issue while deploying a node api on Azure App ...
The Github Actions part works fine, but the website doesn't work, and when I look in the logs, it shows this error :...
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