Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
0
Help us understand the problem. What are the problem?

More than 1 year has passed since last update.

@syunchanp

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

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
0
Help us understand the problem. What are the problem?