question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Couldn't find preset "./.babelrc.js" relative to directory "/node_modules/react-virtualized"

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:21 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
GlebDolzhikovcommented, May 30, 2018

doesn’t work for me, finish it up by fixed “react-virtualized”: “9.18.5”,

5reactions
TrySoundcommented, May 17, 2018

@razius

{
  test: /\.js$/,
  exclude: /node_modules/, // add this line
  loader: 'babel-loader'
}
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found