neoclide / coc-tsserver

Tsserver extension for coc.nvim that provide rich features like VSCode for javascript & typescript
MIT License
1.05k stars 68 forks source link

Default Vite template not working because `"moduleResolution": "bundler"` is not supported #429

Closed hexcowboy closed 9 months ago

hexcowboy commented 1 year ago

I imagine this is an issue with coc-tsserver's typescript version, since "moduleResolution": "bundler" was added in TS 5.x. I'm not sure how to update it

system tsc version

➜ tsc -v
Version 5.0.4

coc-tsserver version

- ✓ coc-tsserver Current version 2.1.3 is up to date.

image

Reproduction:

Create a new Vite project with react-swc-ts template

pnpm create vite . --template react-swc-ts
zaach commented 1 year ago

A workaround for me was to run :CocCommand tsserver.chooseVersion and select the local version.

eiji03aero commented 9 months ago

It seems to be typescript package version has already been bumped up in latest master branch, but not released yet. If they could release it, we should be able to go without creating local files for choosing version ... When the maintainers got time, please make a new release 🙏

Screen Shot 2023-09-16 at 5 40 31
chemzqm commented 9 months ago

Fixed on coc-tsserver@2.1.4