Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Crash with scoped package #153

Open
martinmcwhorter opened this issue Feb 26, 2020 · 4 comments
Open

Crash with scoped package #153

martinmcwhorter opened this issue Feb 26, 2020 · 4 comments

Comments

@martinmcwhorter
Copy link

I am getting a crash trying to generate definitions for a scoped package.

The command I run:

dts-gen -m @commitlint/load

/Users/martin.mcwhorter/.nvm/versions/node/v12.6.0/lib/node_modules/dts-gen/bin/lib/run.js:125
        throw e;
        ^

Error: ENOENT: no such file or directory, open '@commitlint/load.d.ts'
    at Object.openSync (fs.js:447:3)
    at Object.writeFileSync (fs.js:1206:35)
    at Object.<anonymous> (/Users/martin.mcwhorter/.nvm/versions/node/v12.6.0/lib/node_modules/dts-gen/bin/lib/run.js:107:12)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:643:32)
    at Function.Module._load (internal/modules/cjs/loader.js:556:12)
    at Function.Module.runMain (internal/modules/cjs/loader.js:839:10)
    at internal/main/run_main_module.js:17:11 {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: '@commitlint/load.d.ts'
}
@Mistic92
Copy link

I have the same issue for dts-gen -m @sfeir/actions-on-google-i18n

@Mistic92
Copy link

I think this may be related to creating file on Windows. When I used -f my.d.ts it worked

@martinmcwhorter
Copy link
Author

martinmcwhorter commented Mar 16, 2020 via email

@Naxos84
Copy link

Naxos84 commented Mar 5, 2021

Im having also the issue when trying to generate for @buffetjs/core

Command: dts-gen -m @buffetjs/core

Error-stack:

Unexpected crash! Please log a bug with the commandline you specified.
C:\Users\${username}\AppData\Roaming\nvm\v12.16.0\node_modules\dts-gen\bin\lib\run.js:125
        throw e;
        ^
ReferenceError: window is not defined
    at Object.<anonymous> (C:\${PROJECT_PATH}\node_modules\@buffetjs\core\build\bundle.development.js:10:4)
    at Module._compile (internal/modules/cjs/loader.js:1157:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1177:10) 
    at Module.load (internal/modules/cjs/loader.js:1001:32)
    at Function.Module._load (internal/modules/cjs/loader.js:900:14)
    at Module.require (internal/modules/cjs/loader.js:1043:19)
    at require (internal/modules/cjs/helpers.js:77:18)
    at Object.<anonymous> (C:\${PROJECT_PATH}\node_modules\@buffetjs\core\build\index.js:7:20)
    at Module._compile (internal/modules/cjs/loader.js:1157:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1177:10) 

Note: I stripped username and project-path.
Im using windows.
And it could be that it is another issue since I get another stack trace then the issue creator.
But I'm not sure. So I commented here instead of creating a new issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants