Cannot find module '../../package.json'
See original GitHub issueError 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:
- Created 7 years ago
- Comments:7 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I forgot
index.d.ts
. 😓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.