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

Incompatible with Nexe packaging tool while using fs-extra 10.0.0 #909

Closed
donthijackthegit opened this issue Jun 21, 2021 · 1 comment
Closed

Comments

@donthijackthegit
Copy link

donthijackthegit commented Jun 21, 2021

  • **Operating System:**Ubuntn 20.04.1

  • Node.js version: v12.20.2/v14.17.1

  • fs-extra version: 10.0.0

I am using Nexe to package my service into an executable file. Compilation was success, but when I run the app, I got below error message:

 }, 'name', { value: fn.name })
                         ^

TypeError: Cannot read property 'name' of undefined
    at exports.fromCallback (/***/dist/nexe/node_modules/universalify/index.js:15:26)
    at Object.<anonymous> (/***/dist/nexe/node_modules/fs-extra/lib/fs/index.js:57:27)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:14)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:92:18)
    at Object.<anonymous> (/***/dist/nexe/node_modules/fs-extra/lib/index.js:5:6)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)

I switch back to fs-extra 9.1.0 everything works fine.

Cannot reproduce if run directly via node.

@RyanZim
Copy link
Collaborator

RyanZim commented Jun 21, 2021

This is a bug with Nexe, it looks like they don't support fs.realpath.native.

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

No branches or pull requests

2 participants