Giter VIP home page Giter VIP logo

Comments (4)

akira-cn avatar akira-cn commented on June 25, 2024 5

I found this way will temporary solve the problem.

Insert await void(0) between each command.

await text({
    ...
});

await void(0);

await text({
    ...
});

from clack.

ChristoferMendes avatar ChristoferMendes commented on June 25, 2024

I found this way will temporary solve the problem.

Insert await void(0) between each command.

await text({
    ...
});

await void(0);

await text({
    ...
});

This does not worked out for me 😔

But I was curious, what exactly does await void(0) do and why would that be a solution?

from clack.

qhariN avatar qhariN commented on June 25, 2024

Looks like this issue has already been addressed in the latest release of Bun, v1.0.18. You can find more details about the fix in the release notes: Bun v1.0.18 Release Notes.

from clack.

braebo avatar braebo commented on June 25, 2024

Bun runs it fine, but chokes on the build:

 bun build index.ts
1 | s l,erase as d}from"sisteransi";import{stdin as $,stdout as k}from"node:process";import*as f from"node:readline";import
                                                          ^
error: No matching export in "node:process" for import "stdin"
    at /Users/bew/dev/scripts/tui/lss/node_modules/@clack/core/dist/index.mjs:1:55

1 | s d}from"sisteransi";import{stdin as $,stdout as k}from"node:process";import*as f from"node:readline";import _ from"node
                                                                     ^
error: No matching export in "node:process" for import "stdout"
    at /Users/bew/dev/scripts/tui/lss/node_modules/@clack/core/dist/index.mjs:1:66

from clack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.