Giter Site home page Giter Site logo

Comments (7)

bananaumai avatar bananaumai commented on May 23, 2024 2

Uh-oh,,,,, it was just the issue of the way to compile...

npx tsc --build tsconfig.json completely has worked.

This issue was just due to my lack of understanding on tsc.

I'm sorry and thanks again for your help @gfx , @mcclure .

from msgpack-javascript.

gfx avatar gfx commented on May 23, 2024 1

Excellent!

Anyway, I've mentioned to prerequisites about TypeScript in README.md: 6d2c4bc

from msgpack-javascript.

mcclure avatar mcclure commented on May 23, 2024

I am not connected with the msgpack-javascript project, I am a user. I cannot reproduce your error but I think that is because I am using Web instead of node.

According to several github issues on other projects, the solution is to add "es2018.asynciterable" to your lib array in tsconfig.json. Does that help?

If that fixes the problem, maybe msgpack should document this issue somehow.

from msgpack-javascript.

bananaumai avatar bananaumai commented on May 23, 2024

@mcclure Thank you for your advice.

I tried as you suggested:

 {
     "compilerOptions": {
         "moduleResolution": "node",
-        "lib": ["ES2018", "DOM"]
+        "lib": ["ES2018.AsyncIterable", "ES2018.AsyncGenerator", "DOM"]
     }
 }

But, it didn't work for me, unfortunately. Thanks anyway!

from msgpack-javascript.

gfx avatar gfx commented on May 23, 2024

Can you try "lib": ["es2020"]? This is used in

"lib": ["es2020", "dom"], /* Specify library files to be included in the compilation. */

from msgpack-javascript.

bananaumai avatar bananaumai commented on May 23, 2024

@gfx Thanks for following up. I also try that way. But, again, it didn't work...

I'll give this issue some more investigation later.

from msgpack-javascript.

bananaumai avatar bananaumai commented on May 23, 2024

I've seen your commit, that must be really helpful. Thanks.

from msgpack-javascript.

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.