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

Folder name is undefined #45

Closed
nidamunir opened this issue Jan 15, 2021 · 6 comments
Closed

Folder name is undefined #45

nidamunir opened this issue Jan 15, 2021 · 6 comments

Comments

@nidamunir
Copy link

This is the output of yarn build

It gives folder name as undefined no matter what value I provide in output or path or even if I remove it.

webpack 5.0.0 compiled successfully in 9695 ms
[npm-dts] [info] :  ________________________________________ 
[npm-dts] [info] : |                                        |
[npm-dts] [info] : |                                        |
[npm-dts] [info] : |          npm-dts v1.3.6                |
[npm-dts] [info] : |          by Vytenis Urbonavičius       |
[npm-dts] [info] : |                                        |
[npm-dts] [info] : |________________________________________|
[npm-dts] [info] :
[npm-dts] [info] : Generating declarations for "F:\eMumbaProjects\js-porting-doc\spitz-webapp\web-app\federation"...
[npm-dts] [verbose] : Locating OS Temporary Directory...
[npm-dts] [verbose] : OS Temporary Directory was located!
[npm-dts] [verbose] : Will now reset "tmp" directory...
[npm-dts] [verbose] : Cleaning up "tmp" directory...
[npm-dts] [verbose] : "tmp" directory was cleaned!
[npm-dts] [verbose] : Preparing "tmp" directory...
[npm-dts] [verbose] : "tmp" directory was prepared!
[npm-dts] [verbose] : Generating per-file typings using TSC...
[npm-dts] [debug] : tsc --declaration --emitDeclarationOnly --declarationDir "C:\Users\Emumba\AppData\Local\Temp\tmp-26216-kUVWpx2n7A9Z\npm-dts"
[npm-dts] [verbose] : Per-file typings have been generated using TSC!
[npm-dts] [verbose] : Loading list of generated typing files...
[npm-dts] [verbose] : Successfully loaded list of generated typing files!
[npm-dts] [verbose] : Loading declaration files and mapping to modules...
[npm-dts] [verbose] : Loading package.json...
[npm-dts] [verbose] : package.json information has been loaded!
[npm-dts] [verbose] : Loaded declaration files and mapped to modules!
[npm-dts] [verbose] : Cleaning up "tmp" directory...
[npm-dts] [verbose] : "tmp" directory was cleaned!
[npm-dts] [verbose] : Combining typings into single file...
[npm-dts] [verbose] : Combined typings into a single file!
[npm-dts] [verbose] : Adding alias for main file of the package...
[npm-dts] [verbose] : Successfully created alias for main file!
[npm-dts] [verbose] : Ensuring that output folder exists...
[npm-dts] [debug] : Creating output folder: "F:\eMumbaProjects\js-porting-doc\spitz-webapp\web-app\federation\undefined\dist"...
[npm-dts] [verbose] : Output folder is ready!
[npm-dts] [verbose] : Storing typings into undefined//dist/federation.d.ts file...
[npm-dts] [verbose] : Successfully created undefined//dist/federation.d.ts file!
[npm-dts] [verbose] : Deleting OS Temporary Directory...
[npm-dts] [verbose] : OS Temporary Directory was deleted!
[npm-dts] [info] : Generation is completed!
@nidamunir
Copy link
Author

nidamunir commented Jan 15, 2021

[npm-dts] [debug] : Creating output folder: "F:\eMumbaProjects\js-porting-doc\spitz-webapp\web-app\federation\undefined\dist"...

This is the folder name which is set to undefined.

@nidamunir
Copy link
Author

I made it work by providing the name as '../dist/federation.d.ts'

@flyyuan
Copy link
Contributor

flyyuan commented Jan 15, 2021

Please provide a repo

@ghost
Copy link

ghost commented Jan 20, 2021

Could reproduce the issue. Here is an example repo:
https://github.com/ZukenHammer/emp-dtsplugin-path-bug

  1. run npm ci
  2. run ./node_modules/.bin/webpack

When an ouput is given in the webpack.config.js with path it works as expected.

@ckken
Copy link
Contributor

ckken commented Jan 22, 2021

@flyyuan

@flyyuan
Copy link
Contributor

flyyuan commented Jan 24, 2021

Fix in 23e50b7
Please update to 1.1.8

@flyyuan flyyuan closed this as completed Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants