-
-
Notifications
You must be signed in to change notification settings - Fork 223
Closed
Labels
questionA user questionA user question
Description
Describe the bug
I'm using postcss with postcss-nesting plugin.
I see this error in vscode when opening a .svelte file in a nested workspace:

Identifier is expected
If you expect this syntax to work, here are some suggestions:
If you use less/SCSS with `svelte-preprocess`, did you add `lang="scss"`/`lang="less"` to your `style` tag? If you use SCSS, it may be necessary to add the path to your NODE runtime to the setting `svelte.language-server.runtime`, or use `sass` instead of `node-sass`.
Did you setup a `svelte.config.js`?
See https://github.com/sveltejs/language-tools/tree/master/docs#using-with-preprocessors for more info.
Reproduction
https://github.com/raythurnevoid/svelte-ls-monorepo-postcss-error/tree/main
npm --workspace test-workspace i
The error is shown only when opening the root folder with vscode.
It disappears when opening the actual nested workspace folder: ./test-workspace
Expected behavior
The error should not be raised when opening a file placed in a nested workspace.
System Info
System:
OS: Windows 10 10.0.22621
CPU: (16) x64 AMD Ryzen 9 4900H with Radeon Graphics
Memory: 17.99 GB / 31.42 GB
Binaries:
Node: 18.14.0 - C:\Program Files\nodejs\node.EXE
npm: 9.3.1 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Spartan (44.22621.1265.0), Chromium (110.0.1587.49)
Internet Explorer: 11.0.22621.1
npmPackages:
@sveltejs/kit: ^1.7.2 => 1.7.2
@sveltejs/package: ^2.0.1 => 2.0.1
svelte: ^3.55.1 => 3.55.1
vite: ^4.1.2 => 4.1.2
Which package is the issue about?
Svelte for VS Code extension
Additional Information, eg. Screenshots
No response
Metadata
Metadata
Assignees
Labels
questionA user questionA user question