Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

Default webpack options are not passed correctly #188

Closed
bahmutov opened this issue May 8, 2020 · 1 comment · Fixed by #189
Closed

Default webpack options are not passed correctly #188

bahmutov opened this issue May 8, 2020 · 1 comment · Fixed by #189

Comments

@bahmutov
Copy link
Contributor

bahmutov commented May 8, 2020

If react-scripts code cannot find webpack config, it returns invalid options

const getWebpackOptions = opts => {
  debug('top level opts %o', opts)

  // const webpackOptions = findWebpack.getWebpackOptions()
  const webpackOptions = null
  if (!webpackOptions) {
    console.error('⚠️ Could not find Webpack options, using defaults')
    return {
      webpackOptions: webpackPreprocessor.defaultOptions,
      watchOptions: {},
    }
  }

Screen Shot 2020-05-08 at 2 16 17 PM

@bahmutov
Copy link
Contributor Author

bahmutov commented May 8, 2020

🎉 This issue has been resolved in version 4.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant