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

Error: Cannot find module '@babel/runtime/helpers/interopRequireWildcard' #4

Open
Melmoth-the-Wanderer opened this issue Oct 6, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@Melmoth-the-Wanderer
Copy link

Melmoth-the-Wanderer commented Oct 6, 2022

Describe the bug

This project requires @babel/runtime/helpers/interopRequireWildcard but is not listed either as a dependency not peerDependency.

To Reproduce

run npx ts-readme on a typescript project

Screenshots

> ts-readme                                                 

node:internal/modules/cjs/loader:936                                                                                             
  throw err;                                                                                                                     
  ^                                                                                                                              
                                                                                                                                 
Error: Cannot find module '@babel/runtime/helpers/interopRequireWildcard'                                                        
Require stack:                                                                                                                   
- (...)\node_modules\ts-readme\dist\cjs\bin.js                               
- (...)\node_modules\ts-readme\bin\ts-readme.js                              
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)                                                
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)                                                           
    at Module.require (node:internal/modules/cjs/loader:1005:19)                                                                 
    at require (node:internal/modules/cjs/helpers:102:18)                                                                        
    at Object.<anonymous> ((...)\node_modules\ts-readme\dist\cjs\bin.js:1:42)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)                                                                
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)                                                  
    at Module.load (node:internal/modules/cjs/loader:981:32)                                                                     
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)                                                           
    at Module.require (node:internal/modules/cjs/loader:1005:19) {                                                               
  code: 'MODULE_NOT_FOUND',                                                                                                      
  requireStack: [                                                                                                                
    '(...)\\node_modules\\ts-readme\\dist\\cjs\\bin.js',                
    '(...)\\node_modules\\ts-readme\\bin\\ts-readme.js'                 
  ]                                                                                                                              
}                                                                                    

Environment information:

node 16.15.1
npm 8.11.0

Additional context

@Melmoth-the-Wanderer Melmoth-the-Wanderer added the bug Something isn't working label Oct 6, 2022
@jsayol
Copy link

jsayol commented Dec 30, 2022

I just run into this myself. Until it's fixed, for anyone else wanting to use ts-readme, you can install @babel/runtime in your own project as a dev dependency:

npm install --save-dev @babel/runtime

After doing that you can run it without an issue.

@JeffreyDavidsz
Copy link

@jsayol Thanks! that worked for me

@hipstersmoothie
Copy link
Contributor

Anyone here willing to submit a PR?

@JeffreyDavidsz
Copy link

This repo hasn't been updated in 3 years. I think you be better of with npm install --save-dev @babel/runtime running in your own project

@hipstersmoothie
Copy link
Contributor

🤷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants