activeguild / vite-plugin-sass-dts

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

vite-plugin-sass-dts wont generate typescript definitions for `resolve.alias` paths. #57

Closed sashapetrovska closed 2 years ago

sashapetrovska commented 2 years ago

title ^

repro: here

edit: Also I'm getting a bunch of code log? errors prettier related?

SyntaxError: Type expected. (4:25)
  2 | };
  3 | export default classNames;
> 4 | export type ClassNames =

something like image

I'm not sure what it is but I can't push my repo publicly, it's proprietary stuff, just I can tell my code isn't wrong, it builds successfully without the plugin.

activeguild commented 2 years ago

@typhoeus-ltd Hi! Thanks for the detailed info. I'll check it out in a minute.

activeguild commented 2 years ago

It worked fine in my environment. There may be differences between windows and mac. I don't have a windows machine so it is difficult to verify, can I get some more error details?

activeguild commented 2 years ago

@typhoeus-ltd You may have an old prettier installed on global and it may be causing the error. Can you check by installing the latest prettier?