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

yarn start will throw error TypeError: Cannot read property "minimizer" of undefined #14794

Closed
jcppman opened this issue Jun 14, 2019 · 1 comment · Fixed by #14795
Closed
Labels
status: confirmed Issue with steps to reproduce the bug that’s been verified by at least one reviewer. type: bug An issue or pull request relating to a bug in Gatsby

Comments

@jcppman
Copy link

jcppman commented Jun 14, 2019

Description

with the latest gatsby-plugin-netlify-cms package (https://github.com/gatsbyjs/gatsby/releases/tag/gatsby-plugin-netlify-cms%404.0.2), yarn start will throw error TypeError: Cannot read property "minimizer" of undefined.

This is caused by #14783. Because in dev mode optimization is indeed undefined.

Steps to reproduce

Expected result

No error is thrown.

Actual result

An error will be thrown. TypeError: Cannot read property "minimizer" of undefined

Environment

System:
OS: macOS 10.14.5
CPU: (8) x64 Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz
Shell: 2.6.0 - /usr/local/bin/fish
Binaries:
Node: 8.11.2 - ~/.config/fnm/bin/node
Yarn: 1.16.0 - /usr/local/bin/yarn
npm: 6.5.0 - ~/.config/fnm/bin/npm
Languages:
Python: 2.7.10 - /usr/bin/python
Browsers:
Chrome: 74.0.3729.169
Firefox: 64.0.2
Safari: 12.1.1
npmPackages:
gatsby: ^2.1.34 => 2.9.4
gatsby-image: ^2.0.23 => 2.1.4
gatsby-plugin-netlify: ^2.0.6 => 2.0.17
gatsby-plugin-netlify-cms: ^4.0.0 => 4.0.2
gatsby-plugin-purgecss: ^4.0.0 => 4.0.0
gatsby-plugin-react-helmet: ^3.0.4 => 3.0.12
gatsby-plugin-sass: ^2.0.7 => 2.0.11
gatsby-plugin-sharp: ^2.0.15 => 2.1.5
gatsby-remark-copy-linked-files: ^2.0.7 => 2.0.13
gatsby-remark-images: ^3.0.1 => 3.0.16
gatsby-remark-relative-images: ^0.2.1 => 0.2.2
gatsby-source-filesystem: ^2.0.26 => 2.0.39
gatsby-transformer-remark: ^2.3.4 => 2.4.0
gatsby-transformer-sharp: ^2.1.9 => 2.1.21

joshua-scott added a commit to joshua-scott/petra-blog that referenced this issue Jun 16, 2019
@sidharthachatterjee sidharthachatterjee added status: confirmed Issue with steps to reproduce the bug that’s been verified by at least one reviewer. type: bug An issue or pull request relating to a bug in Gatsby labels Jun 17, 2019
@sidharthachatterjee
Copy link
Contributor

Fixed and published in gatsby-plugin-netlify-cms@4.0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: confirmed Issue with steps to reproduce the bug that’s been verified by at least one reviewer. type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants