-
Notifications
You must be signed in to change notification settings - Fork 112
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
process is not defined #64
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi everyone,
I am trying to use react-loading as externals in webpack with
"react-loading": "^2.0.3"
and"webpack": "^5.37.0"
:webpack.prod.js:
template.prod.html
As soon as I start it and open it in the browser, I get the following error:
The problem seems to be here (https://unpkg.com/[email protected]/dist/react-loading.js) in the following lines and also maybe in other lines where "process" exists:
I tried to use DefinePlugin like this in my webpack.prod.js file:
Besides, I also added ProvidePlugin with the following config after running
npm install process
:Unfortunately none of those solved the problem.
What am I doing wrong?
Thanks in advance!
The text was updated successfully, but these errors were encountered: