Skip to content
New issue

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

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

Already on GitHub? # to your account

Incompatibility with TypeScript 5.0.0 #22

Open
StrangeGirlMurph opened this issue Jan 4, 2023 · 3 comments
Open

Incompatibility with TypeScript 5.0.0 #22

StrangeGirlMurph opened this issue Jan 4, 2023 · 3 comments

Comments

@StrangeGirlMurph
Copy link

StrangeGirlMurph commented Jan 4, 2023

The extension isn't compatible with TypeScript (5.0.0-dev.20230105).
It's fine with 4.9.4 that ships with vscode but TS nightly breaks it.

ERR <semantic> TypeScript Server Error (5.0.0-dev.20230105)
this.info.project.resolveModuleNames is not a function
TypeError: this.info.project.resolveModuleNames is not a function
    at get state [as state] (/home/murphy/.vscode/extensions/sastan.twind-intellisense-0.2.1/node_modules/@twind/typescript-plugin/typescript-plugin.cjs:662:42)
    at get enabled [as enabled] (/home/murphy/.vscode/extensions/sastan.twind-intellisense-0.2.1/node_modules/@twind/typescript-plugin/typescript-plugin.cjs:633:32)
    at get enabled [as enabled] (/home/murphy/.vscode/extensions/sastan.twind-intellisense-0.2.1/node_modules/@twind/typescript-plugin/typescript-plugin.cjs:1047:24)
    at Object.getQuickInfoAtPosition (/home/murphy/.vscode/extensions/sastan.twind-intellisense-0.2.1/node_modules/@twind/typescript-plugin/typescript-plugin.cjs:1681:28)
    at IpcIOSession.getQuickInfoWorker (/home/murphy/.vscode/extensions/ms-vscode.vscode-typescript-next-5.0.202301050/node_modules/typescript/lib/tsserver.js:176270:52)
    at quickinfo (/home/murphy/.vscode/extensions/ms-vscode.vscode-typescript-next-5.0.202301050/node_modules/typescript/lib/tsserver.js:174695:43)
    at /home/murphy/.vscode/extensions/ms-vscode.vscode-typescript-next-5.0.202301050/node_modules/typescript/lib/tsserver.js:177138:69
    at IpcIOSession.executeWithRequestId (/home/murphy/.vscode/extensions/ms-vscode.vscode-typescript-next-5.0.202301050/node_modules/typescript/lib/tsserver.js:177130:14)
    at IpcIOSession.executeCommand (/home/murphy/.vscode/extensions/ms-vscode.vscode-typescript-next-5.0.202301050/node_modules/typescript/lib/tsserver.js:177138:29)
    at IpcIOSession.onMessage (/home/murphy/.vscode/extensions/ms-vscode.vscode-typescript-next-5.0.202301050/node_modules/typescript/lib/tsserver.js:177180:51)
    at process.<anonymous> (/home/murphy/.vscode/extensions/ms-vscode.vscode-typescript-next-5.0.202301050/node_modules/typescript/lib/tsserver.js:178655:14)
    at process.emit (node:events:526:28)
    at emit (node:internal/child_process:938:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:84:21): Error: <semantic> TypeScript Server Error (5.0.0-dev.20230105)
this.info.project.resolveModuleNames is not a function
TypeError: this.info.project.resolveModuleNames is not a function
    at get state [as state] (/home/murphy/.vscode/extensions/sastan.twind-intellisense-0.2.1/node_modules/@twind/typescript-plugin/typescript-plugin.cjs:662:42)
    at get enabled [as enabled] (/home/murphy/.vscode/extensions/sastan.twind-intellisense-0.2.1/node_modules/@twind/typescript-plugin/typescript-plugin.cjs:633:32)
    at get enabled [as enabled] (/home/murphy/.vscode/extensions/sastan.twind-intellisense-0.2.1/node_modules/@twind/typescript-plugin/typescript-plugin.cjs:1047:24)
    at Object.getQuickInfoAtPosition (/home/murphy/.vscode/extensions/sastan.twind-intellisense-0.2.1/node_modules/@twind/typescript-plugin/typescript-plugin.cjs:1681:28)
    at IpcIOSession.getQuickInfoWorker (/home/murphy/.vscode/extensions/ms-vscode.vscode-typescript-next-5.0.202301050/node_modules/typescript/lib/tsserver.js:176270:52)
    at quickinfo (/home/murphy/.vscode/extensions/ms-vscode.vscode-typescript-next-5.0.202301050/node_modules/typescript/lib/tsserver.js:174695:43)
    at /home/murphy/.vscode/extensions/ms-vscode.vscode-typescript-next-5.0.202301050/node_modules/typescript/lib/tsserver.js:177138:69
    at IpcIOSession.executeWithRequestId (/home/murphy/.vscode/extensions/ms-vscode.vscode-typescript-next-5.0.202301050/node_modules/typescript/lib/tsserver.js:177130:14)
    at IpcIOSession.executeCommand (/home/murphy/.vscode/extensions/ms-vscode.vscode-typescript-next-5.0.202301050/node_modules/typescript/lib/tsserver.js:177138:29)
    at IpcIOSession.onMessage (/home/murphy/.vscode/extensions/ms-vscode.vscode-typescript-next-5.0.202301050/node_modules/typescript/lib/tsserver.js:177180:51)
    at process.<anonymous> (/home/murphy/.vscode/extensions/ms-vscode.vscode-typescript-next-5.0.202301050/node_modules/typescript/lib/tsserver.js:178655:14)
    at process.emit (node:events:526:28)
    at emit (node:internal/child_process:938:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:84:21)
    at Function.create (/opt/visual-studio-code/resources/app/extensions/typescript-language-features/dist/extension.js:2:1499744)
    at d.w (/opt/visual-studio-code/resources/app/extensions/typescript-language-features/dist/extension.js:2:1495016)
    at d.u (/opt/visual-studio-code/resources/app/extensions/typescript-language-features/dist/extension.js:2:1494095)
    at ChildProcess.<anonymous> (/opt/visual-studio-code/resources/app/extensions/typescript-language-features/dist/extension.js:2:1493723)
    at ChildProcess.emit (node:events:526:28)
    at ChildProcess.emit (node:domain:475:12)
    at emit (node:internal/child_process:938:14)
    at processTicksAndRejections (node:internal/process/task_queues:84:21)
@StrangeGirlMurph StrangeGirlMurph changed the title Intellisense just not working TypeScript Server Error - this.info.project.resolveModuleNames is not a function Jan 6, 2023
@StrangeGirlMurph StrangeGirlMurph changed the title TypeScript Server Error - this.info.project.resolveModuleNames is not a function Incompatible with TypeScript 5.0.0 Jan 6, 2023
@StrangeGirlMurph StrangeGirlMurph changed the title Incompatible with TypeScript 5.0.0 Incompatibility with TypeScript 5.0.0 Jan 6, 2023
@sastan
Copy link
Contributor

sastan commented Jan 13, 2023

There will be an overhaul of the plugin using the new @twind/intelisense package as seen at https://twind.run. Once I get there I'll check TS v5 support.

@ceIia
Copy link

ceIia commented Jul 6, 2023

is there any updates to v5 support? 😸

@AlexanderArvidsson
Copy link

I've created a PR to @twind/typescript-plugin to support TS 5, if you want a quick fix for all these issues before you use the @twind/intellisense package.
tw-in-js/typescript-plugin#22

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

No branches or pull requests

4 participants