Open Akryum opened 2 years ago
Commenting the load
part of the unplugin plugin (here) makes the error go away. So the issue is probably related to load
.
So when the error happens, resolveId
is not called and then plugin.__vfsModules
doesn't have the virtual module so it fails.
Maybe related to https://github.com/sysgears/webpack-virtual-modules/issues/76
Looks like there is an open PR: https://github.com/sysgears/webpack-virtual-modules/pull/128
https://github.com/sysgears/webpack-virtual-modules/pull/164 It looks like fixed with webpack-virtual-modules@v0.5.0 but I still got the error with vercel build:
Since the upstream issue is resolved, we can close this issue?
Reproduction link: https://github.com/Akryum/unplugin-icons-issue-94
The build crashes with errors - examples:
Related to https://github.com/antfu/unplugin-icons/issues/94