You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
19:04:27 [vite] warning: rollup-plugin-inject: failed to parse /home/projects/vite-rollup-plugin-inject-mre-z1z9rb/style.css. Consider restricting the plugin to particular files via options.include
Plugin: inject
File: /home/projects/vite-rollup-plugin-inject-mre-z1z9rb/style.css
Sourcemap for "/home/projects/vite-rollup-plugin-inject-mre-z1z9rb/node_modules/vite/dist/client/client.mjs" points to missing source files
Sourcemap for "/home/projects/vite-rollup-plugin-inject-mre-z1z9rb/node_modules/vite/dist/client/env.mjs" points to missing source files
If the plugin config is set to enforce: 'post', then the sourcemap warnings remain:
Sourcemap for "/home/projects/vite-rollup-plugin-inject-mre-z1z9rb/node_modules/vite/dist/client/client.mjs" points to missing source files
Sourcemap for "/home/projects/vite-rollup-plugin-inject-mre-z1z9rb/node_modules/vite/dist/client/env.mjs" points to missing source files
Note: The warning seems to disappear sometimes after editing main.js in the provided stackblitz project, so try to refresh the page after making changes.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
You'd need enforce: 'post' or pass the include: '**/*.js' option to work. You could send a PR to https://github.com/patak-dev/vite-rollup-plugins to update it. The sourcemap warning could be something we can fix on our side though, but it should be harmless in practice and doesn't make the plugin incompatible.
Describe the bug
The plugin
@rollup/plugin-inject
is in the list of compatible plugins linked in the docs but it raises warnings.Using the vanilla JS template, the warnings are:
If the plugin config is set to
enforce: 'post'
, then the sourcemap warnings remain:Note: The warning seems to disappear sometimes after editing main.js in the provided stackblitz project, so try to refresh the page after making changes.
Reproduction
https://stackblitz.com/edit/vite-rollup-plugin-inject-mre-z1z9rb?file=main.js
Steps to reproduce
npm install && npm run dev
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: