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

[Bug?]: If use 5.4.5-sdks in Next 14, JS/TS language service immediately crashed 5 times #6283

Closed
1 task
jiwooproity opened this issue May 9, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@jiwooproity
Copy link

jiwooproity commented May 9, 2024

Self-service

  • I'd be willing to implement a fix

Describe the bug

use 5.4.4 ~ 5.4.5-sdks in Next 14

yarn dlx @yarnpkg/sdks vscode

and i got VSCode intellisense infinity loading, "JS/TS language service immediately crashed 5 times" crash notification

but, if changed typescript version to "5.4.3-sdk" in ".yarn/sdks/typescript/package.json" no crash notification

5.4.4 ~ 5.4.5 version sdks all is crashed ( 5.4.3-sdks downgrade version not have crashed, typescript 5 ~ 5.4.5 all )

스크린샷 2024-05-09 오후 2 28 47

To reproduce

yarn create next-app --typescript ( typescript version "^5" )
rm -rf node_modules
rm -rf yarn.lock
yarn set version berry
yarn dlx @yarnpkg/sdks vscode

press cmd + shift + p and search "typescript" set version 5.4.5 sdks
now make typescript file ( .ts, .tsx )

// .tsx
const App = () => {
  return (
    <div>Hi</div>
  )
}

export default App;

set typescript sdks and reload vscode window

image

typescript intellisense not working ..

스크린샷 2024-05-09 오후 2 35 55

Environment

System:
  OS: macOS 14.4.1
  CPU: (8) arm64 Apple M1
Binaries:
  Node: 20.5.0 - /private/var/folders/n2/v0wcxq9d0_b22czttlqjxs1w0000gn/T/xfs-d3d30e1b/node
  Yarn: 4.1.1 - /private/var/folders/n2/v0wcxq9d0_b22czttlqjxs1w0000gn/T/xfs-d3d30e1b/yarn
  npm: 10.2.2 - /opt/homebrew/bin/npm
  pnpm: 8.10.2 - /opt/homebrew/bin/pnpm

Additional context

No response

@jiwooproity jiwooproity added the bug Something isn't working label May 9, 2024
@clemyan
Copy link
Member

clemyan commented May 9, 2024

Try if setting typescript.tsserver.experimental.useVsCodeWatcher to false fixes it. If so, then this is a duplicate of #6270.

@jiwooproity
Copy link
Author

jiwooproity commented May 10, 2024

@clemyan
oh.. i tried and i got no crash notification
i think my issue duplicate of #6270
thank you! and i sorry

resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants