-
-
Notifications
You must be signed in to change notification settings - Fork 121
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
Uncaught ReferenceError: process is not defined #174
Labels
Milestone
Comments
same error when using vite |
Hey, I encountered this same error and was able to fix it with this. Not sure what else it might break though. |
This was referenced Sep 23, 2021
Closed
When use vite Add the following config in vite config file: export default defineConfig({
define: {
'process.env': {}
}
}) |
Happening with esbuild.
|
The use of process will be removed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The error happened when Webpack version 5 was used due to the fact that Webpack 5 removed the ability to access environment variables using the notation process.env.MY_ENV_VAR
My temporary solution:
and add the following config in Webpack config file:
The text was updated successfully, but these errors were encountered: