Closed hiteshsahu closed 3 years ago
@hiteshsahu I found another way to work around this problem, as mentioned in #102, you can add the @babel/plugin-proposal-nullish-coalescing-operator
to the dependencies in package.json
and update gatsby-node.js
with
exports.onCreateBabelConfig = ({ actions }) => {
actions.setBabelPlugin({
name: '@babel/plugin-proposal-export-default-from',
});
// add this
actions.setBabelPlugin({
name: '@babel/plugin-proposal-nullish-coalescing-operator',
});
};
Error Logs: