TooTallNate/node-bindings

Cannot read property 'indexOf' of undefined

thisTom opened this issue · 1 comments

PS F:\www\zuhao\client> yarn debug:main
yarn run v1.13.0
$ electron --inspect=5858 -w ./dist/main/main.js

Debugger listening on ws://127.0.0.1:5858/0977f6ec-8de8-4e54-a2d5-09ad8d82aabe
For help, see: https://nodejs.org/en/docs/inspector
App threw an error during load
TypeError: Cannot read property 'indexOf' of undefined
at Function.t.getFileName (F:\www\zuhao\client\dist\main\main.js:139:211412)
at t (F:\www\zuhao\client\dist\main\main.js:139:210566)
at Object. (F:\www\zuhao\client\dist\main\main.js:1:74523)
at a (F:\www\zuhao\client\dist\main\main.js:1:110)
at Object. (F:\www\zuhao\client\dist\main\main.js:223:156632)
at a (F:\www\zuhao\client\dist\main\main.js:1:110)
at Object. (F:\www\zuhao\client\dist\main\main.js:139:219468)
at a (F:\www\zuhao\client\dist\main\main.js:1:110)
at F:\www\zuhao\client\dist\main\main.js:1:902
at Object. (F:\www\zuhao\client\dist\main\main.js:1:913)

when i package electron ,has this error。 thanks for you help,realy need help