NODE_OPTIONS compilation warning after upgrading to 7.x #488
-
|
After upgrading shakapacker from I've tested and found:
So I think the changes made in #350 are conflicting with the Ideally I wouldn't have to stop using the .env for configuring this value as it varies between projects. Has anyone else encountered a similar problem and has a suggestion of how to fix it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
How are you passing the values from .env file to your app? Are you able to provide your webpack config? Can investigate further if we have a reproduction case |
Beta Was this translation helpful? Give feedback.
The cause of the error is likely that the
Dotenvplugin callsDefinePlugin& so does the EnvironmentPlugin in Shakapacker's default webpack configuration.The easiest solution is to overwrite the
pluginsproperty, instead of merging.