Skip to content

composite: true shows error in vscode after upgrading to version 5 #222

Open
@leozhao9527

Description

@leozhao9527

First, really thanks for this project! I've used this for a long time.

Today, I am upgrading the plugin to v5, but after upgrading, seems the Vscode cannot detected my scss module files with this plugin anymore.

I have a customer global.d.ts files specifying the type

declare module '*.module.css' {
  const classes: { readonly [key: string]: string };
  export default classes;
}

declare module '*.module.scss' {
  const classes: { readonly [key: string]: string };
  export default classes;
}

But in the v5 version of this plugin, it shows the following error

File '/project/src/App.module.scss' is not listed within the file list of project '/project/tsconfig.json'. Projects must list all files or use an 'include' pattern.

Snipaste_2023-04-15_15-46-23

But actually, the file already included in the tsconfig.json. If I remove this plugin or downgrade to the v4 version, then the above error will disappear.

And I have a very weird experience with the typescript v5 with this plugin also.

  1. If I use typescript v5 with this plugin v5, then above error is showing and the style intellisense is not working.
  2. If I use typescript v5 with this plugin v4, then above error is not showing and the style intellisense is not working.
  3. If I use typescript v4 with this plugin v5, then above error is showing, but intellisense is working fine.
  4. If I use typescript v4 with this plugin v4, then everything is working.

Any ideas about this in v5 version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions