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
After generating a react app with rspack as bundler, certain features were missing. Here, the define plugin is not added to the config and thus, NX_ variables are not replaced in frontend code.
To fix this, I added it manually in rspack.config.js like so:
Not sure, if this is the recommended way, I just wanted to outline my solution and in general it should be properly configured by nx as described in the docs.
The text was updated successfully, but these errors were encountered:
After generating a react app with rspack as bundler, certain features were missing. Here, the define plugin is not added to the config and thus, NX_ variables are not replaced in frontend code.
To fix this, I added it manually in rspack.config.js like so:
Not sure, if this is the recommended way, I just wanted to outline my solution and in general it should be properly configured by nx as described in the docs.
The text was updated successfully, but these errors were encountered: