activeguild / vite-plugin-sass-dts

This is a plugin that automatically creates a type file when using the CSS module type-safely.
MIT License
120 stars 18 forks source link

Link with query string is recognized as a real file, resulting in a failure to open the file. #74

Closed x6ax6b closed 1 year ago

x6ax6b commented 1 year ago

I don't have any problems in development mode, but I just wanted to let you know that this error can happen in some cases.

[Error: ENOENT: no such file or directory, open '/Users/x6ax6b/dev/src/Component.module.scss?direct'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/Users/x6ax6b/dev/src/Component.module.scss?direct'
}

I'm using it with 'vite-plugin-ssr' and this plugin seems to automatically attach query strings to style links in development mode.

activeguild commented 1 year ago

@x6ax6b

Thank you. We have responded and released the following version.

vite-plugin-sass-dts: 1.3.4