Closed PudottaPommin closed 4 months ago
Hello, Thx for reporting & well spotted.
What do you think about exporting posixRelative
from @kitql/internals
?
I can probably do it in a few hours, but if you wanna do it... it's perfect for me too 👍 When I have time and I will start, I'll look here to see if you want to do the PR or not. (I'll write here)
Nahhh, posix
is already here... Let's use it directly! I'll do it now
@all-contributors please add @PudottaPommin for code
@jycouet
I've put up a pull request to add @PudottaPommin! :tada:
Should be available in vite-plugin-kit-routes@0.6.2
I let you close the issue if this one is fixed.
Thx for your help
thanks! @jycouet it's working like a charm
Describe the bug
When on windows, I get parameter type like
Parameters<typeof import('..\..\params/locale.ts').match>[0]
, which causes type errorCannot find module '....params/locale.ts' or its corresponding type declarations
.Fix should be easy enough, which is to change L686 to
posix.relative
. I can create PR, but file is usingrelative
from@kit/internals
, so I'm not sure, if it's better to change justplugin.ts
or do change inside@kit/internals
.Severity
annoyance
Steps to Reproduce the Bug
vite-plugin-kit-routes
on windowsReproduction
No response