Closed gaetandezeiraud closed 1 year ago
But no error on Windows.
@Brouilles why did you close this? I get the same error now in CI/CD. Wasn't happening before.
And doesn't happen locally on MacOS
@JohnPremKumar I would suggest you to reopen this issue and investigate, because it looks like issue is not in your plugin. My case was that I renamed a .js file by changing the casing (for instance it was file.js and I made File.js). And Linux+Git don't understand that, so they were throwing an error. But instead of seing the actual error we see an error from your plugin.
The same, btw, happened just now when I wrote my vite config with a mistake. Instead of showing the source of the mistake with error it was showing error in your plugin.
So the problem is that for some reason your plugin catches all the errors during build and drops them, while showing it's own error.
For anyone who finds himself in this situation just comment out this plugin and you'll see the actual error.
Sure, I will look into the issue that you mentioned. But opening the current issue for tracking it would be out of context since there are actually other cases where this particular issue will be happen. May be open a new issue for tracking this behaviour.
Any way how to fix it? I got the same error on my Ubuntu server.
The problem wasn't with this plugin, however, this plugin catches all app errors, and in error logs it shows the plugin error "NO_FILES_FOUND".
I guess it should be fixed to don't catch all errors, only plugin errors. Thanks!
Yes, will fix it soon
I still have this error
vite v4.4.9 building for production...
transforming...
✓ 20 modules transformed.
✓ built in 3.88s
[vite-plugin-favicon-inject] NO_FILES_FOUND
error during build:
Error: NO_FILES_FOUND
at Object.closeBundle (/buddy/buddy-smart-light-blinds-frontend/node_modules/vite-plugin-favicons-inject/dist/cjs/index.js:94:15)
at file:///buddy/buddy-smart-light-blinds-frontend/node_modules/rollup/dist/es/shared/node-entry.js:25356:40
at async Promise.all (index 0)
at async PluginDriver.hookParallel (file:///buddy/buddy-smart-light-blinds-frontend/node_modules/rollup/dist/es/shared/node-entry.js:25284:9)
at async file:///buddy/buddy-smart-light-blinds-frontend/node_modules/rollup/dist/es/shared/node-entry.js:26518:13
at async catchUnfinishedHookActions (file:///buddy/buddy-smart-light-blinds-frontend/node_modules/rollup/dist/es/shared/node-entry.js:25722:16)
at async rollupInternal (file:///buddy/buddy-smart-light-blinds-frontend/node_modules/rollup/dist/es/shared/node-entry.js:26505:5)
at async build (file:///buddy/buddy-smart-light-blinds-frontend/node_modules/vite/dist/node/chunks/dep-df561101.js:48005:18)
at async CAC.<anonymous> (file:///buddy/buddy-smart-light-blinds-frontend/node_modules/vite/dist/node/cli.js:822:9)
On
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
It builds fine on MacOS, but doesn't work on CI/CD
This error occur when I try to build the ViteJS project on the server (on Ubuntu server).
With this configuration :
vitePluginFaviconsInject('./src/assets/favicon.png'),
. The favicon file is correct.