-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
vite build - source map generation errors because of file replace plugin #14022
Labels
Comments
ghost
added
the
type: bug
label
Dec 26, 2022
Same problem. After install version 15.4.1 sourcemaps looks like:
I rolled back @nrwl/vite to 15.3.3 UPDATE: I've removed fileReplacements key from the project.json, and it works |
makes sense, because then the plugin won't take any action |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Current Behavior
In >=15.4.0, when running a build with vite that includes sourcemaps (either
hidden
orinline
) the sourcemaps are not generated because of the following error:Sourcemap is likely to be incorrect: a plugin (rollup-plugin-replace-files) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help
This does not happen in 15.3.3, and seems to be impacted by this PR.
Expected Behavior
Sourcemaps should be generated without errors
Github Repo
No response
Steps to Reproduce
sourcemap: "inline"
in "production" configuration of thebuild
target (or some other target)Nx Report
Failure Logs
Sourcemap is likely to be incorrect: a plugin (rollup-plugin-replace-files) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help
Additional Information
No response
The text was updated successfully, but these errors were encountered: