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

Version 3.0.0 breaks packaging with vercel pkg #17

Closed
danielnixon opened this issue Sep 11, 2021 · 1 comment
Closed

Version 3.0.0 breaks packaging with vercel pkg #17

danielnixon opened this issue Sep 11, 2021 · 1 comment

Comments

@danielnixon
Copy link

Hi! This is a great package, thanks for creating it.

Version 3.0.0 (specifically, commit 995e663) breaks packaging with vercel pkg (https://github.com/vercel/pkg).

It looks like vercel pkg is choking on the node:path import syntax introduced in that commit.

Relevant snippets of pkg debug output:

> [debug] Bytecode of node:path is added to queue. It was required from <snip>/node_modules/env-paths/index.js
> [debug] Bytecode of node:os is added to queue. It was required from <snip>/node_modules/env-paths/index.js
> [debug] Bytecode of node:process is added to queue. It was required from <snip>/node_modules/env-paths/index.js
> [debug] Stat info of <snip>/node_modules/env-paths/package.json is added to queue.
> [debug] Content of <snip>/node_modules/env-paths/index.js is added to queue. It was required from <snip>/node_modules/env-paths/package.json
> [debug] Content of <snip>/node_modules/env-paths/index.d.ts is added to queue. It was required from <snip>/env-paths/package.json
> [debug] Content of <snip>/node_modules/env-paths/package.json is added to queue.
> [debug] Stat info of <snip>/node_modules/express/package.json is added to queue.

And then later:

> [debug] Directory <snip>/node_modules/env-paths is added to queue.
> [debug] Stat info of node:path is added to queue.
> [debug] Content of node:path is added to queue.
> Error! Cannot read file, ENOENT
  node:path
error Command failed with exit code 2.
@sindresorhus
Copy link
Owner

That is a problem with pkg. You should open an issue there instead.

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