New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated import paths strips anything preceded by a dot (file.dto.ts ...) #306
Comments
Seeing this issue as well, specifically stripping the |
I also name my Pinia stores |
@ChronicStone @nathanchase Looks like this is a complication from the I'm gonna take a stab at making a PR that could address this there. 🤞 |
Still going to open a PR on the Nuxt repo itself, but it doesn't look like I can 100% do what we want. It would be beneficial if an option could be set when calling The issue Nuxt runs into is that the addon for vue-templates calls |
Alternatively, being able to specify option overrides for addons specifically as opposed addons always inheriting the general options would work, as it would allow Nuxt to alter the |
Fixed in 1d31ff2, thanks |
Sorry, the problem is actually related to the pr, but after fixing this problem, the original problem reappeared again, all types imported with addServerImportsDir become any. You can refer to the reproduction in the issue mentioned above. It may be a problem with nuxt or nitro, if I want to open issue in one of them, I will try to open it, thank you. |
@kiki-kanri It looks like your issue may have resurfaced because of this line in Nitro? https://github.com/unjs/nitro/blob/78b3e77b978b51195f313c793cb1cfb1bf594f27/src/build.ts#L178 The most recent change to unimport would disable unimport's stripping of the file extension, since there's a custom |
The extension should be handled by |
yes I had this problem again, it adds it again at the end of mjs coming from |
i am send fix pr unjs/nitro#2139 |
Environment
Reproduction
Here's a stackblitz minimal reproduction :
https://stackblitz.com/edit/nuxt-starter-jxv1vc?file=.nuxt%2Ftypes%2Fimports.d.ts
Describe the bug
Produced entry on imports.d.ts :
The '.service' part of the file name have been stripped away
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: