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
Hi there, I'm trying to migrate the project of my company where I work, from cra to Vite. Here's where I'm stuck:
I've checked out similar issues(all those issues have been marked as closed without any resolution) with other packages and all I got was a workaround of: vitejs/vite#1973 (comment) define: { 'process.env': {}, // to workaround the process.env error but not a permanent fix },
but it doesn't work in the production build, now it gives an error as the process is undefined!
I didn't face any such issues with other packages I'm using in the project.
Any help would be highly appreciated.
The text was updated successfully, but these errors were encountered:
Hi there, I'm trying to migrate the project of my company where I work, from cra to Vite. Here's where I'm stuck:
I've checked out similar issues(all those issues have been marked as closed without any resolution) with other packages and all I got was a workaround of:
vitejs/vite#1973 (comment)
define: { 'process.env': {}, // to workaround the process.env error but not a permanent fix },
but it doesn't work in the production build, now it gives an error as the process is undefined!
I didn't face any such issues with other packages I'm using in the project.
Any help would be highly appreciated.
The text was updated successfully, but these errors were encountered: