Couldn't find preset "./.babelrc.js" relative to directory "/node_modules/react-virtualized"
See original GitHub issueI get the following error while trying to compile with the latest version (9.19.0).
Module build failed: Error: Couldn't find preset "./.babelrc.js" relative to directory "/unisport/storefront/node_modules/react-virtualized"
at /unisport/storefront/node_modules/babel-core/lib/transformation/file/options/option-manager.js:293:19
at Array.map (<anonymous>)
at OptionManager.resolvePresets (/unisport/storefront/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
at OptionManager.mergePresets (/unisport/storefront/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
at OptionManager.mergeOptions (/unisport/storefront/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
at OptionManager.init (/unisport/storefront/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
at File.initOptions (/unisport/storefront/node_modules/babel-core/lib/transformation/file/index.js:212:65)
at new File (/unisport/storefront/node_modules/babel-core/lib/transformation/file/index.js:135:24)
at Pipeline.transform (/unisport/storefront/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
at transpile (/unisport/storefront/node_modules/babel-loader/lib/index.js:50:20)
at Object.module.exports (/unisport/storefront/node_modules/babel-loader/lib/index.js:173:20)
@ ./node_modules/react-virtualized-select/dist/commonjs/VirtualizedSelect/VirtualizedSelect.js 41:17-69
@ ./node_modules/react-virtualized-select/dist/commonjs/VirtualizedSelect/index.js
@ ./node_modules/react-virtualized-select/dist/commonjs/index.js
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:21 (1 by maintainers)
Top Results From Across the Web
Issues - GitHub
Module build failed: Error: Couldn't find preset "./.babelrc.js" relative to directory "$path\\node_modules\\react-virtualized" #1284.
Read more >Couldn't find preset "@babel/env" - reactjs - Stack Overflow
This is the problem with your presets definition in your .babelrc . The correct preset name is preset-env , not env .
Read more >babel/preset-typescript
This preset is recommended if you use TypeScript, a typed superset of JavaScript. It includes the following plugins: ... You will need to...
Read more >React JS Uncaught ReferenceError : require is not defined ...
Coding example for the question React JS Uncaught ReferenceError : require is not defined-babel.js.
Read more >Module not found: Can't resolve 'C:\Users\PRO\Desktop\null\imgser ...
node_modules/babel-loader/lib/index.js): Error: Couldn't find preset "env" relative to directory · Module build failed (from .
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
doesn’t work for me, finish it up by fixed “react-virtualized”: “9.18.5”,
@razius