babel-loader: fileSystem.statSync is not a function
Getting this error only on v7.1.2. When I downgrade to 7.1.1 - everything works.
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)
Host node v8.1.2 Electron version is 1.7.5 webpack 3.5.5
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 47
- Comments: 20 (4 by maintainers)
Commits related to this issue
- chore(devDeps): wip on update dev deps * add webpack * update babel-loader, add babel-core NOTE: cannot update babel-loader to latest version because https://github.com/babel/babel-loader/issues/50... — committed to zalando/dress-code by rbarilani 7 years ago
- chore(devDeps): wip on update dev deps * add webpack * update babel-loader, add babel-core NOTE: cannot update babel-loader to latest version because https://github.com/babel/babel-loader/issues/50... — committed to zalando/dress-code by rbarilani 7 years ago
- chore(devDeps): wip on update dev deps * add webpack * update babel-loader, add babel-core NOTE: cannot update babel-loader to latest version because https://github.com/babel/babel-loader/issues/50... — committed to zalando/dress-code by rbarilani 7 years ago
- chore(devDeps): update dev deps * add webpack * add babel-core * update gulp-(autoprefixer,sourcemaps,sass,iconfont,debug,replace) * update susy * update run-sequence * **CAN'T update** gulp-csso bec... — committed to zalando/dress-code by rbarilani 7 years ago
- chore(devDeps): update dev deps * add webpack * add babel-core * update gulp-(csso,autoprefixer,sourcemaps,sass,iconfont,debug,replace) * update susy * update run-sequence * update babel-loader but *... — committed to zalando/dress-code by rbarilani 7 years ago
- correct setup for enzyme 3.0, adapt tests, pin babel loader version -> https://github.com/babel/babel-loader/issues/505 — committed to fkretzer/react-object-form by deleted user 7 years ago
- correct setup for enzyme 3.0, adapt tests, pin babel loader version -> https://github.com/babel/babel-loader/issues/505 — committed to fkretzer/react-object-form by deleted user 7 years ago
- Updated more babel deps. babel-loader fixed at 7.1.1 due to <https://github.com/babel/babel-loader/issues/505> — committed to orangemug/editor by orangemug 7 years ago
- Internalized fork of react tether [#152859677] and locked down the version of babel-loader@7.1.1 see https://github.com/babel/babel-loader/issues/505 Signed-off-by: Ming Xiao <mxiao@pivotal.io> — committed to pivotal-cf/pivotal-ui by sjolicoeur 7 years ago
- Internalized fork of react tether [#152859677] and locked down the version of babel-loader@7.1.1 see https://github.com/babel/babel-loader/issues/505 Signed-off-by: Ming Xiao <mxiao@pivotal.io> — committed to pivotal-cf/pivotal-ui by sjolicoeur 7 years ago
- babel-loader@7.1.1 to prevent weird bug (github.com/babel/babel-loader/issues/505) — committed to Squarespace/squarespace-video-background-rendering by Danjohnsonnj 7 years ago
- Merge pull request #20 in TMD/video-background-rendering from rewrite to master * commit 'bbe608066e98102a0b9a34a6c1a174de47a55d64': (45 commits) Adds missing documentation 0.3.7 Removing inter... — committed to Squarespace/squarespace-video-background-rendering by Danjohnsonnj 7 years ago
- pin babel version due to https://github.com/babel/babel-loader/issues/505 — committed to alexanderankin/monod by alexanderankin 2 years ago
if you use webpack 1.x please use babel-loader 6.x
My temporarily solution is downgrade babel-loader to 7.1.1
I had the same error with webpack@3.9.1. Downgraded babel-loader and it worked.
I got this error with webpack@2.4.1, downgrading babel-loader from 7.1.2 to 7.1.1 did the trick. Kudos to @JackyTung
@vshymanskyy @joboscribe can you post the output of the following commands from within your project:
this.fs
is the cached filesystem from webpack and it should supportstatSync
since version 2.2.0 of webpack.Looks like in
lib/index.js
this.fs
exists but doesn’t have the functionstatSync
. When i changed it toeverything seemed to work. What’s the goal in using
this.fs
? I didn’t dig very far, does it allow for overriding it to something other thanfs
?I encountered this error when i was using “babel-loader”: “^7.1.3”, Change to babel-loader@6.2.5 worked!
@danez I also encounter same error msg, I write the comment under this issue https://github.com/babel/babel-loader/issues/503#issuecomment-324251487
my package version is
so I don’t know why it still occur err