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

Typescript 4.5 - sources always empty "Error running flat dts Failed to emit type definitions Error: Failed to emit type definitions" #19

Closed
natew opened this issue Sep 23, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@natew
Copy link

natew commented Sep 23, 2021

Getting this as of 4.5, I added logging inside to see why but nothing seems off it reads the right config.

Error running flat dts Failed to emit type definitions Error: Failed to emit type definitions
    at Object.writeOut (/Users/n8/dish/node_modules/rollup-plugin-flat-dts/dist/flat-dts.api.cjs:235:35)

For some reason this line:

const { options, errors, fileNames: files } = ts__default['default'].parseJsonConfigFileContent(config, ts__default['default'].sys, dirName);

Just returns an empty array always. Was working fine before.

@surol
Copy link
Member

surol commented Sep 24, 2021

Thanks. Will look into this.

@surol surol self-assigned this Sep 24, 2021
@surol surol added the bug Something isn't working label Sep 24, 2021
@surol
Copy link
Member

surol commented Sep 25, 2021

Preliminary TypeScript-4.5 support added to typescript-4.5 branch.

Will release a @next version soon after TypeScript-4.5 enters public beta

@surol
Copy link
Member

surol commented Oct 3, 2021

Version 1.4.0-beta.0 released with support of TypeScript-4.5 added.
It can be installed with npm i --save-dev rollup-plugin-flat-dts@beta command.
Please feel free to reopen this bug if it still isn't working for you.

@surol surol closed this as completed Oct 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants