Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Server crashes every time I try to make a <style> #4520

Closed
@bklik

Description

@bklik

Vue - Official extension or vue-tsc version

v2.0.24

VSCode version

1.90.2

Vue version

^3.4.18

TypeScript version

^4.5.4

System Info

System:
    OS: Linux 6.5 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i9-12900HK
    Memory: 25.09 GB / 31.01 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
Binaries:
    Node: 20.15.0 - /usr/bin/node
    Yarn: 1.22.22 - /usr/bin/yarn
    npm: 10.7.0 - /usr/bin/npm
Browsers:
    Chrome: 126.0.6478.126

Steps to reproduce

Create a component and start typing a <style lang="scss" scoped> tag.

What is expected?

The vscode extension doesn't crash.

What is actually happening?

The vscode extension crashes with the above error:

TypeError: Cannot read properties of undefined (reading 'label')
at Dte (/home/user/.vscode/extensions/vue.volar-2.0.24/dist/server.js:13571:2319)
at Object.provideCompletionItems (/home/user/.vscode/extensions/vue.volar-2.0.24/dist/server.js:13571:1995)
at async m (/home/user/.vscode/extensions/vue.volar-2.0.24/dist/server.js:2:48796)
at async Object.getCompletionItems (/home/user/.vscode/extensions/vue.volar-2.0.24/dist/server.js:2:49560)
at async /home/user/.vscode/extensions/vue.volar-2.0.24/dist/server.js:66:20287
at async Timeout. (/home/user/.vscode/extensions/vue.volar-2.0.24/dist/server.js:66:26830)

Node.js v20.9.0
[Error - 2:27:59 PM] Server process exited with code 1.
[Error - 2:27:59 PM] The Vue server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.

Link to minimal reproduction

No response

Any additional comments?

If I revert to v2.0.22 everything works as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions