Repository navigation
Build produces an error "undefined" is not valid JSON while processing scss
#5935
vitaliiboiko360
started this conversation in
General
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi, didn't want to create an issue,
but need to discuss it with you
My setup is
excerpt from `vite.config.js`
Using
Vitedev server works fine,Building for production/development stops working and produces an error at the line
src/utils/transform.ts#L77Getting
error during build:"undefined" is not valid JSONwas forced to add something like
if (map !== null && map != "undefined") {to avoid later on callingJSON.parse("undefined")that eventually produces the error.Need an understanding on what is going on here in this code.
Thank you.
Cheers
All reactions