Skip to content

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

Open
@Melmoth-the-Wanderer

Description

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

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions