Closed some-user123 closed 1 year ago
Linux
v16.14.2
3.0.0
1.0.0
npm@7.17.0
vite
modules
ssr
typescript
runtimeConfig
nuxt-graphql-client@0.2.20
-
Running nuxi dev everything is working great. However, when running nuxi generate the build fails with type error:
nuxi dev
nuxi generate
❯ app.vue:13:33 - error TS7006: Parameter 'launch' implicitly has an 'any' type. 13 data.value?.launches?.filter((launch) => Number(launch?.launch_year) > 2000) ~~~~~~
data isn't properly typed, but any.
data
any
If nuxi dev doesn't fail, nuxi generate shouldn't either.
https://stackblitz.com/edit/github-9fr2zc?file=app.vue
// nuxt.config.ts export default defineNuxtConfig({ // ... ssr: false, typescript: { typeCheck: true, strict: true, } })
No response
@some-user123 Thank you for raising this issue! v0.2.22 was just released with a fix for this issue.
v0.2.22
🤩 Awesome, thanks a lot!
Environment
Linux
v16.14.2
3.0.0
1.0.0
npm@7.17.0
vite
modules
,ssr
,typescript
,runtimeConfig
nuxt-graphql-client@0.2.20
Build Modules:
-
Describe the bug
Running
nuxi dev
everything is working great. However, when runningnuxi generate
the build fails with type error:data
isn't properly typed, butany
.Expected behaviour
If
nuxi dev
doesn't fail,nuxi generate
shouldn't either.Reproduction
https://stackblitz.com/edit/github-9fr2zc?file=app.vue
Additional context
Logs
No response