Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootstrap error with lodash after build in macos #4

Open
zaaack opened this issue Jul 4, 2019 · 1 comment
Open

bootstrap error with lodash after build in macos #4

zaaack opened this issue Jul 4, 2019 · 1 comment

Comments

@zaaack
Copy link

zaaack commented Jul 4, 2019

If I installed package cheerio and build with yackage in macos, the packed app will exist with error like this:

buffer.js:269
    throw err;
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "size" argument must be of type number. Received type undefined
    at Function.alloc (buffer.js:278:3)
    at AsarArchive.readFile (asar_archive.js:96:27)
    at Object.fs.readFileSync (asar_monkey_patch.js:379:40)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:20)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (/Users/z/Projects/Node/Hydux/yue-bug/out/yuebug.app/Contents/MacOS/site-cloner/asar/node_modules/lodash/_castPath.js:1:171)

but it's OK if I start with yode .. Here is the minimal code:

bug.zip

@zaaack
Copy link
Author

zaaack commented Jul 5, 2019

@zcbenz I extract the asar file from the binary, it looks OK, and run asarArchive.getFileInfo/readFile manually, it works fine, really strange error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant