twoslashes / twoslash

Markup for generating rich type information in your documentations ahead of time.
https://twoslash.netlify.app/
MIT License
479 stars 16 forks source link

Missing @types/node at twoslash when it already installed #50

Open kravetsone opened 3 weeks ago

kravetsone commented 3 weeks ago

Why it throw this errors?

Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
Cannot find module 'node:fs' or its corresponding type declarations.
{
  "devDependencies": {
    "@biomejs/biome": "1.8.3",
    "@fluent/bundle": "^0.18.0",
    "@gramio/auto-retry": "^0.0.3",
    "@gramio/autoload": "^1.1.0",
    "@gramio/files": "^0.0.12",
    "@gramio/format": "^0.1.3",
    "@gramio/i18n": "^0.0.4",
    "@gramio/init-data": "^0.0.1",
    "@gramio/keyboards": "^0.3.3",
    "@gramio/prompt": "^0.1.0",
    "@gramio/session": "^0.1.5",
    "@gramio/types": "^7.9.0",
    "@iconify-json/logos": "^1.1.44",
    "@iconify-json/skill-icons": "^1.1.10",
    "@shikijs/vitepress-twoslash": "1.13.0",
    "@types/node": "^22.4.0",
    "@unocss/preset-icons": "^0.62.2",
    "elysia": "^1.1.6",
    "gramio": "^0.0.48",
    "grammy": "^1.29.0",
    "undici": "^6.19.7",
    "unocss": "^0.62.2",
    "vitepress": "^1.3.2",
    "@michael-makes/shiki-colorized-brackets": "npm:@jsr/michael-makes__shiki-colorized-brackets"
  },
  "scripts": {
    "dev": "bunx vitepress dev docs",
    "build": "bunx vitepress build docs",
    "preview": "bunx --bun vitepress preview docs"
  }
}

action - https://github.com/gramiojs/documentation/actions/runs/10424909870/job/28874689592 repo - https://github.com/gramiojs/documentation

I have no idea why he can't see @types/node

kravetsone commented 2 weeks ago

seems like a regression. i fix it in https://github.com/gramiojs/documentation/commit/e1a288883ad5973415b072a1b2938692f765350a (revert versions in package.json to last success build)

kravetsone commented 1 week ago

Any updates on this?

It is blocking for me to build documentation with new features(

How can i help?

kravetsone commented 1 week ago

https://yaso.su/twoslashissue

lockfile source