developit / greenlet

🦎 Move an async function into its own thread.
https://npm.im/greenlet
4.67k stars 100 forks source link

Cannot find module 'greenlet'. ts(2307) #42

Closed pixelbucket-dev closed 5 years ago

pixelbucket-dev commented 5 years ago

We're having a small typescript lib here that we want to use greenlet in. Unfortunately, greenlet does not get recognised.

Out tsconfig.json looks like this:

{
  "compilerOptions": {
    "target": "es2017",
    "noImplicitAny": false,
    "declaration": true,
    "moduleResolution": "node",
    "outDir": "./dist"
  }

...
}
pixelbucket-dev commented 5 years ago

I have to add that I just added "moduleResolution": "node", so this wasn't there. VSCode reported this error, though the build worked. After VSCode restart the inline error was also gone. I will close this.

It would be nice if that was documented for TS users :).