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

UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'fileName' of undefined #1293

Merged
merged 4 commits into from
May 5, 2021

Conversation

gasnier
Copy link
Contributor

@gasnier gasnier commented Apr 25, 2021

When using webpack devserver I often get an Unhandled promise rejection when a file is removed (generally because I switch to another git branch)
I get UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'fileName' of undefined
at provideErrorsToWebpack (after-compile.js:128:29)

(I assume it may also happen while simply using watch mode)

Without the provided fix, I need to stop and restart the devserver to solve the problem

@johnnyreilly
Copy link
Member

Thanks! Do you want to add an entry to the CHANGELOG.md and increment the package.json?

@gasnier
Copy link
Contributor Author

gasnier commented May 5, 2021

Thanks! Do you want to add an entry to the CHANGELOG.md and increment the package.json?

Done

@johnnyreilly johnnyreilly merged commit e3a30c0 into TypeStrong:main May 5, 2021
@johnnyreilly
Copy link
Member

Shipping with https://github.com/TypeStrong/ts-loader/releases/tag/v9.1.2

@gasnier gasnier deleted the bugfix/provideErrorsToWebpack branch May 5, 2021 21:02
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

Successfully merging this pull request may close these issues.

None yet

2 participants