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

Webpack 5 build errors with persistent/disk cache #94

Open
Akryum opened this issue Oct 12, 2021 · 3 comments
Open

Webpack 5 build errors with persistent/disk cache #94

Akryum opened this issue Oct 12, 2021 · 3 comments

Comments

@Akryum
Copy link
Contributor

Akryum commented Oct 12, 2021

Reproduction link: https://github.com/Akryum/unplugin-icons-issue-94

  1. Build a webpack 5 project with persistent caching -> Success
    2. Modify any file in the source code
  2. Build again -> Success
  3. Build again -> Error

The build crashes with errors - examples:

 error  in ./virtual:~icons/feather/smile

Syntax Error: no such file or directory, open '/home/akryum/Projects/livestorm-app/packages/frontend/virtual:~icons/feather/smile'


 error  in ./virtual:~icons/feather/x-circle

Syntax Error: no such file or directory, open '/home/akryum/Projects/livestorm-app/packages/frontend/virtual:~icons/feather/x-circle'


 error  in ./virtual:~icons/feather/x

Syntax Error: no such file or directory, open '/home/akryum/Projects/livestorm-app/packages/frontend/virtual:~icons/feather/x'
@Akryum Akryum changed the title Webpack 5 disk cache errors Webpack 5 build errors with persistent/disk cache after file edit Oct 12, 2021
@Akryum Akryum changed the title Webpack 5 build errors with persistent/disk cache after file edit Webpack 5 build errors with persistent/disk cache Oct 12, 2021
@Akryum
Copy link
Contributor Author

Akryum commented Oct 12, 2021

Seems like it's a problem with unplugin itself:
https://github.com/Akryum/unplugin-icons-issue-94/tree/unplugin

@roamiiing
Copy link

Hey! Is there any update on this or any known workaround? This is the only thing that stops my team from enabling webpack cache in CI. It would be okay if we could somehow disable cache for _virtual_~icons (set cacheable option for webpack loader to false or something like that), but I can't find a way to do that.

@Karakatiza666
Copy link

Bump, same issue in 2024

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