Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kravetsone opened this issue Aug 16, 2024 · 3 comments
Open

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

kravetsone opened this issue Aug 16, 2024 · 3 comments

Comments

@kravetsone
Copy link

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
Copy link
Author

seems like a regression.
i fix it in gramiojs/documentation@e1a2888 (revert versions in package.json to last success build)

@kravetsone
Copy link
Author

Any updates on this?

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

How can i help?

@kravetsone
Copy link
Author

https://yaso.su/twoslashissue

lockfile source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant