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
With this change: GENERATE_SOURCEMAP = false --> shouldUseSourceMap is false --> config.module.rules.length is 1 --> config.module.rules.length===2 is false --> configStructureKnown is false and then throws an error.
The text was updated successfully, but these errors were encountered:
@anh-dinh-jh thanks for reporting this. As mentioned in the other issue, we have had a vacation season, which caused some lag in responses on our part.
The configStructureKnown is now refactored to better work with environment variables (like GENERATE_SOURCEMAP) that affect the config structure.
Describe the bug
On the new templates using sharetribe-scripts v6.0, set
GENERATE_SOURCEMAP = false
, got an error:To Reproduce Steps to reproduce the behavior:
GENERATE_SOURCEMAP = false
yarn dev
oryarn build
Expected behavior
No errors
Reasons
sharetribe-scripts v6.0:
File:
packages/react-scripts/config/sharetribeWebpackConfig.js
hasRules
is false, which causes theconfigStructureKnown
is false and then throws an error.Changes on FB react-scripts
PR: This
react-scripts PR: This
File:
packages/react-scripts/config/webpack.config.js
Changes:
With this change:
GENERATE_SOURCEMAP = false
-->shouldUseSourceMap
is false -->config.module.rules.length
is 1 -->config.module.rules.length===2
is false -->configStructureKnown
is false and then throws an error.The text was updated successfully, but these errors were encountered: