You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System:
OS: Windows 10
CPU: x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
Binaries:
Yarn: 1.13.0
npm: 6.2.0
Steps to Reproduce
create-react-app testing
npm run eject
npm test
Observe spectacular failure
Expected Behavior
Test should pass just as it did before ejecting.
Actual Behavior
FAIL src/App.test.js ● Test suite failed to run
[BABEL] C:\code\testing\src\App.test.js: Cannot find module '@babel/plugin-transform-react-jsx' (While processing: "C:\\code\\testing\\node_modules\\babel-preset-react-app\\index.js$1")
at _pluginTransformReactJsx (node_modules/babel-preset-react-app/node_modules/@babel/preset-react/lib/index.js:19:39)
at _default (node_modules/babel-preset-react-app/node_modules/@babel/preset-react/lib/index.js:73:16)
at node_modules/@babel/helper-plugin-utils/lib/index.js:19:12
at loadDescriptor (node_modules/@babel/core/lib/config/full.js:165:14)
at cachedFunction (node_modules/@babel/core/lib/config/caching.js:33:19)
at loadPresetDescriptor (node_modules/@babel/core/lib/config/full.js:235:63)
Test Suites: 1 failed, 1 total Tests: 0 total Snapshots: 0 total Time: 1.954s
Activity
saranshkataria commentedon Jan 11, 2019
Followed the steps mentioned on a Windows 10 machine, but I am not getting the test suite failed.
Test Suites: 1 passed, 1 total
feugy commentedon Jan 23, 2019
If you eject from a clean installation, you'll have the same.
It's because that dependency is not written in
package.jsonwhen ejecting.mrlubos commentedon Feb 19, 2019
Doesn’t
npm i -D @babel/plugin-transform-react-jsxsolve this error?iansu commentedon Jun 30, 2021
Can you try the latest release and see if this has improved? If not please open a new issue.