The "minor refactor" rewriting gastby-node.js from CJS to ESM syntax in #12482 was published untranspiled, thus breaking the build for any consuming project.
yarn buildBase Gatsby sandbox with gatsby-plugin-flow added.
It should run.
error Plugin gatsby-plugin-flow returned an error
Error: /sandbox/node_modules/gatsby-plugin-flow/gatsby-node.js:1
(function (exports, require, module, __filename, __dirname) { export const onC reateBabelConfig = ({
^^^^^^
SyntaxError: Unexpected token export
$ /sandbox/node_modules/.bin/gatsby info
System:
OS: Linux 4.17 Debian GNU/Linux 9 (stretch) 9 (stretch)
CPU: (8) x64 Intel Xeon Processor (Skylake, IBRS)
Shell: 4.4.12 - /bin/bash
Binaries:
Node: 8.14.0 - /tmp/yarn--1552315817668-0.739238521021055/node
Yarn: 1.12.3 - /tmp/yarn--1552315817668-0.739238521021055/yarn
npm: 6.4.1 - /usr/local/bin/npm
Languages:
Python: 2.7.13 - /usr/bin/python
npmPackages:
gatsby: ^2.1.29 => 2.1.29
gatsby-image: ^2.0.31 => 2.0.31
gatsby-plugin-flow: 1.0.3 => 1.0.3
gatsby-plugin-manifest: ^2.0.22 => 2.0.22
gatsby-plugin-offline: ^2.0.24 => 2.0.24
gatsby-plugin-react-helmet: ^3.0.8 => 3.0.8
gatsby-plugin-sharp: ^2.0.26 => 2.0.26
gatsby-source-filesystem: ^2.0.23 => 2.0.23
gatsby-transformer-sharp: ^2.1.15 => 2.1.15
Done in 1.57s.
v1.0.4 was published with fix ( https://unpkg.com/[email protected]/gatsby-node.js is cjs again)
@simonkberg Sorry about that 馃槩thanks @pieh for the quick fix