Skip to content
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

[5.15.3] Error "process is not defined" in production if node is set to false in webpack config #2264

Closed
le0nik opened this issue Jan 27, 2020 · 3 comments
Assignees

Comments

@le0nik
Copy link
Contributor

le0nik commented Jan 27, 2020

If webpack doesn't mock process then it only replaces exact strings defined in DefinePlugin or EnvironmentPlugin etc, so process.env.IGNORE_MOBX_MINIFY_WARNING doesn't get replaced and causes a "process is not defined" error in production. This is the offending line.

process.env.IGNORE_MOBX_MINIFY_WARNING !== "true"

Workarounds on user's side for now are:

  • roll back to 5.15.2
  • add IGNORE_MOBX_MINIFY_WARNING to Define/Environment plugin in webpack config
@mweststrate
Copy link
Member

mweststrate commented Jan 27, 2020 via email

@danielkcz danielkcz self-assigned this Jan 27, 2020
@le0nik
Copy link
Contributor Author

le0nik commented Jan 27, 2020

#2265

@lock
Copy link

lock bot commented Mar 27, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or questions.

@lock lock bot locked as resolved and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants