Answer the question
In order to leave comments, you need to log in
How to add plugin to babel in React project?
I get an error when running tests
SyntaxError: C:\OSPanel\domains\localhost\maxiru\table-res-test\table-reservation\src\scripts\uti
ls\lodash.js: Support for the experimental syntax 'exportDefaultFrom' isn't currently enabled (1: 8):
> 1 | export each from 'lodash/each'
Add @babel/plugin-proposal-export-default-from ( https://git.io/vb4yH) to the 'plugins' section of
your Babel config to enable transformation.
"presets": [
"@babel/preset-env",
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-transform-runtime",
"@babel/plugin-proposal-export-default-from"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question