Help us understand the problem. What is going on with this article?

Module build failed: TypeError: fileSystem.statSync is not a function

More than 1 year has passed since last update.
ERROR in ../~/react/react.js
Module build failed: TypeError: fileSystem.statSync is not a function
    at module.exports (..\node_modules\babel-loader\lib\utils\exists.js:7:25)
    at find (..\node_modules\babel-loader\lib\resolve-rc.js:13:9)
    at Object.module.exports (..\node_modules\babel-loader\lib\index.js:113:132)
 @ multi vendor

というエラーが消せない
http://otiai10.hatenablog.com/entry/2016/04/17/211145
https://stackoverflow.com/questions/32832179/using-webpack-with-nodejs-native-modules

こちらの記事を読むと、解消したみたいだけどおいらは全然ダメww

https://github.com/babel/babel-loader/issues/505
元々は、こっちの記事だったと思っているので、なぜか消えない

で、勝手にコードを書き換えて逃げているww

babel-loader/lib/index.js
  // Handle options
  var loaderOptions = loaderUtils.getOptions(this) || {};
  var fileSystem = this.fs ? this.fs : fs;
  fileSystem = fs;  <-- これ入れて逃げた
  var babelrcPath = null;
  if (loaderOptions.babelrc !== false) {

-- 2019/03/26 追記 --
バグの理由を見つけたんだけど...あれ?忘れちゃったなー
client or server(nodejs)どちらか利用できないケースで利用しているのが理由だったような気がする

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした