Closed gempain closed 3 years ago
Fixed by adding "@babel/plugin-proposal-nullish-coalescing-operator": "^7.13.8",
to package.json
and then updating gatsby-node.js
from
exports.onCreateBabelConfig = ({ actions }) => {
actions.setBabelPlugin({
name: '@babel/plugin-proposal-export-default-from',
});
};
to
exports.onCreateBabelConfig = ({ actions }) => {
actions.setBabelPlugin({
name: '@babel/plugin-proposal-export-default-from',
});
actions.setBabelPlugin({
name: '@babel/plugin-proposal-nullish-coalescing-operator',
});
};
Do this:
npm i gatsby-plugin-nullish-coalescing-operator @babel/core @babel/plugin-proposal-nullish-coalescing-operator
and then
npm update
Hi !
I tried running:
then got
Seems like the template isn't working out of the box.