Coder Social home page Coder Social logo

Comments (3)

bobbinth avatar bobbinth commented on May 22, 2024

Thanks for trying it out! What you are doing should work - but 2 thoughts:

  1. What version of TypeScript do you have? I'm currently using 3.6.2 and it comes with lib.dom.d.ts file which contains the declaration for WebAssembly namespace. I'm using VS Code and in my case the file lives under ...\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\lib.dom.d.ts
  2. If you are trying to compile the project, it's better to use Gulp tasks. If you have VS Code, the task have been already configured (in the .vscode/tasks.json file). If you are using something else, you might need to install Gulp CLI (e.g. npm install --global gulp-cli).

Let me know if any of this helps. If not, we can troubleshoot further.

from genstark.

bobbinth avatar bobbinth commented on May 22, 2024

Of course, if you just want to use the library in a project - you don't need to compile it. Just pull it from NPM and use it the same way as shown in the example here.

from genstark.

cwgoes avatar cwgoes commented on May 22, 2024

I had previously been using Typescript 3.4.x, upgraded to 3.6.3 which fixed the issue, thanks.

from genstark.

Related Issues (16)

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.