Node-fs-extra: 杩欎釜鎬庝箞澶勭悊鍛紵閲嶆柊瀹夎濂藉嚑娆′簡锛歎ncaught TypeError: Cannot read property 'toString' of undefined

Created on 14 Jul 2019  路  3Comments  路  Source: jprichardson/node-fs-extra


  • Operating System:
  • Node.js version:
  • fs-extra version:

Most helpful comment

Care to post the full error log?

All 3 comments

Care to post the full error log?

Hi,

I got the same error in a typescript react/electron app. I've used to override some webpack configs with react-app-rewired and everything worked fine. However recently I needed to switch over to rescripts and then I started to get this error.
I'm not sure where the problem lies exactly, but just wanted to check with you if you have some clues.

If you need some more info please let me know.

Console logs:

graceful-fs.js:66 Uncaught TypeError: Cannot read property 'toString' of undefined
    at Object.<anonymous> (graceful-fs.js:66)
    at Object../node_modules/graceful-fs/graceful-fs.js (graceful-fs.js:258)
    at __webpack_require__ (bootstrap:781)
    at fn (bootstrap:149)
    at Object../node_modules/fs-extra/lib/fs/index.js (index.js:6)
    at __webpack_require__ (bootstrap:781)
    at fn (bootstrap:149)
    at Object../node_modules/fs-extra/lib/index.js (index.js:4)
    at __webpack_require__ (bootstrap:781)
    at fn (bootstrap:149)
    at Module.<anonymous> (Sound.tsx:1)
    at Module../src/components/Sound.tsx (Sound.tsx:18)
    at __webpack_require__ (bootstrap:781)
    at fn (bootstrap:149)
    at Module../src/components/AudioView.tsx (AudioView.scss?23d7:45)
    at __webpack_require__ (bootstrap:781)
    at fn (bootstrap:149)
    at Module../src/App.tsx (App.scss?2f5e:45)
    at __webpack_require__ (bootstrap:781)
    at fn (bootstrap:149)
    at Module../src/index.tsx (index.scss?c0ba:45)
    at __webpack_require__ (bootstrap:781)
    at fn (bootstrap:149)
    at Object.0 (utils.regex.ts:15)
    at __webpack_require__ (bootstrap:781)
    at checkDeferredModules (bootstrap:45)
    at Array.webpackJsonpCallback [as push] (bootstrap:32)
    at main.chunk.js:1

Closing as too unclear to debug.

Was this page helpful?
0 / 5 - 0 ratings