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

Use vercel/ncc to compile setler-cli #26

Open
mankins opened this issue May 2, 2023 · 0 comments
Open

Use vercel/ncc to compile setler-cli #26

mankins opened this issue May 2, 2023 · 0 comments

Comments

@mankins
Copy link
Contributor

mankins commented May 2, 2023

vercel/ncc

Currently some errors in the way:

  • qrcode-terminal throws an octal error, as mentioned here. I was able to get around this with:
    black = "\\033[40m  \\033[0m",
    white = "\\033[47m  \\033[0m",

(The double escape...) ... but it's not clear if this actually works as desired or prints the literal because I wasn't able to get the rest of the ncc compilation to execute. It's likely there's another/proper way to do the above.

  • Once compiled, executing node dist/index.js produces:
delete require.cache[__filename];
^

ReferenceError: require is not defined in ES module scope, you can use import instead

It does look this is similar to this issue: vercel/ncc#243 ...

Will keep this open hoping to get around these issues.

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

1 participant