Closed jrjdavidson closed 6 months ago
Thanks for the problem report. But I couldn't reproduce the problem on my end. I use Windows + MINGW64.
dts-bundle-generator to generate type declare files seems to fail. Can you directly run dts-bungle-generator and check the verbose error messages if possible?
here it is. Ihad to cut out some bit due to my comment being too long (maximum is 65536 characters), I marked them with [...] below
tiny-web-metaverse\packages\stream_client> npx dts-bundle-generator -o .\dist\stream_client.bundle.d.ts .\src\index.ts --verbose
Verbose log enabled
Total entries count=1
Compiling input files...
Using config: D:/Dropbox (UC Enterprise)/Work/Distance Labs/corejs/tiny-web-metaverse/packages/stream_client/tsconfig.json
dts cache:
dts cache match: D:/Dropbox (UC Enterprise)/Work/Distance Labs/corejs/tiny-web-metaverse/packages/stream_client/src/index.d.ts
[...] // similar message +100x
Input source files:
D:/Dropbox (UC Enterprise)/Work/Distance Labs/corejs/tiny-web-metaverse/packages/stream_client/src/adapter.d.ts
src/index.d.ts
D:/Dropbox (UC Enterprise)/Work/Distance Labs/corejs/tiny-web-metaverse/node_modules/@types/node/assert.d.ts
D:/Dropbox (UC Enterprise)/Work/Distance Labs/corejs/tiny-web-metaverse/node_modules/@types/node/assert/strict.d.ts
D:/Dropbox (UC Enterprise)/Work/Distance Labs/corejs/tiny-web-metaverse/node_modules/undici-types/header.d.ts
[...] // similar message +100x
D:/Dropbox (UC Enterprise)/Work/Distance Labs/corejs/tiny-web-metaverse/node_modules/@types/ws/index.d.ts
Processing .\src\index.ts
======= Preparing file: D:/Dropbox (UC Enterprise)/Work/Distance Labs/corejs/tiny-web-metaverse/packages/stream_client/src/adapter.d.ts =======
======= Preparing file: src/index.d.ts =======
No output for file: src/index.d.ts
======= Preparing file: D:/Dropbox (UC Enterprise)/Work/Distance Labs/corejs/tiny-web-metaverse/node_modules/@types/node/assert.d.ts =======
No output for file: D:/Dropbox (UC Enterprise)/Work/Distance Labs/corejs/tiny-web-metaverse/node_modules/@types/node/assert.d.ts
======= Preparing file: D:/Dropbox (UC Enterprise)/Work/Distance Labs/corejs/tiny-web-metaverse/node_modules/@types/node/assert/strict.d.ts =======
No output for file: D:/Dropbox (UC Enterprise)/Work/Distance Labs/corejs/tiny-web-metaverse/node_modules/@types/node/assert/strict.d.ts
======= Preparing file: D:/Dropbox (UC Enterprise)/Work/Distance Labs/corejs/tiny-web-metaverse/node_modules/undici-types/header.d.ts =======
No output for file: D:/Dropbox (UC Enterprise)/Work/Distance Labs/corejs/tiny-web-metaverse/node_modules/undici-types/header.d.ts
======= Preparing file: D:/Dropbox (UC Enterprise)/Work/Distance Labs/corejs/tiny-web-metaverse/node_modules/undici-types/readable.d.ts =======
No output for file: D:/Dropbox (UC Enterprise)/Work/Distance Labs/corejs/tiny-web-metaverse/node_modules/undici-types/readable.d.ts
======= Preparing file: D:/Dropbox (UC Enterprise)/Work/Distance Labs/corejs/tiny-web-metaverse/node_modules/undici-types/file.d.ts =======
No output for file: D:/Dropbox (UC Enterprise)/Work/Distance Labs/corejs/tiny-web-metaverse/node_modules/undici-types/file.d.ts
======= Preparing file: D:/Dropbox (UC Enterprise)/Work/Distance Labs/corejs/tiny-web-metaverse/node_modules/undici-types/fetch.d.ts =======
No output for file: D:/Dropbox (UC Enterprise)/Work/Distance Labs/corejs/tiny-web-metaverse/node_modules/undici-types/fetch.d.ts
[...] // similar message +100*
======= Preparing file: D:/Dropbox (UC Enterprise)/Work/Distance Labs/corejs/tiny-web-metaverse/node_modules/@types/three/src/Three.d.ts =======
Error: Something went wrong - value cannot be null
Thanks. Hm, an error seems to be caused with Three.js declartion file?
Very hard to investigate the root issue on my end because I can't reproduce...
I just found that an exception seems to be thrown from here for now.
The commands I ran are exact same as the one in the readme.
$ git clone https://github.com/takahirox/tiny-web-metaverse.git
$ cd tiny-web-metaverse
$ npm run install:all
$ npm run build:all
I tried on Windows + MINGW64 and Windows + Power shell and the both are fine. Please let me know any clue if you have.
I won't be able to check anything until Monday, but the second 'preparing file' line in the log seems off to me:
======= Preparing file: src/index.d.ts =======
No output for file: src/index.d.ts
It seems all the other line have a full path associated with, it, whereas this on doesn't. Could it be some kind of file path issue? Maybe I'll try mingw
see https://github.com/timocov/dts-bundle-generator/issues/265 and https://github.com/timocov/dts-bundle-generator/issues/266.
npm install dts-bundle-generator@9.0.0 -D
fixed it for me. I
following the 'how to build' instruction. I get an error when trying to build the stream_client package. Here is the relevant snippet.
running on windows.