Closed provok-me closed 6 months ago
Would you be able to provide a reproduction? π
At first glance it looks like you're right, will look into it but a repro is always helpful.
@BobbieGoede
I updated to v8.3.0.
Now it's the Typescript definition of getRouteBaseName
that's wrong (and thus the definition of $getRouteBaseName
is wrong too.)
You'll find the wrong definition in the following generated file:
dist/runtime/routing/compatibles/routing.d.ts
The problem comes from the changes made to getRouteBaseName
in the following commit (see line 50 of src/runtime/routing/compatibles/routing.ts
):
https://github.com/nuxt-modules/i18n/commit/b0016471c617ece151ac1d2f3195f3bd4b0b3bc7
Do you have a strategy to avoid rollbacks for future module versions?
Feel free to open a PR!
Environment
Build Modules: -
Reproduction
...
Describe the bug
You forgot to wrap
getRouteBaseName
withwrapComposable
here in your code.This results in
$getRouteBaseName
failing because thecommon
argument is missing.Additional context
Add tests to the code base to avoid pushing error-prone code. (It's been a problem multiple times from the start with v8)
Logs
No response