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

Changing file extension with webpack 5 breaks the compilation #64

Open
zlk89 opened this issue Feb 2, 2021 · 0 comments
Open

Changing file extension with webpack 5 breaks the compilation #64

zlk89 opened this issue Feb 2, 2021 · 0 comments

Comments

@zlk89
Copy link

zlk89 commented Feb 2, 2021

Reproducible steps:

  1. Clone to this repro: https://github.com/zlk89/webpack-reprods/tree/tsconfig-paths-webpack-plugin-issue
  2. yarn install
  3. yarn start - let it build and store the cache
  4. change a file's extension: mv src/utils.ts src/utils.tsx

You will see error:

ERROR in ./src/utils.tsx
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: ENOENT: no such file or directory, open '/webpack-reprods/src/utils.ts'
 @ ./src/index.ts 1:0-32 2:0-5

It's still trying to find the src/utils.ts which doesn't exist any more.

If you kill the process, and rerun yarn start, it still fails unless you delete the ./.webpack_cache folder

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

1 participant