Skip to content
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

ssr : true gives TS error on routeRules #15199

Closed
TomDoFuture opened this issue Oct 19, 2022 · 0 comments · Fixed by nuxt/framework#8487
Closed

ssr : true gives TS error on routeRules #15199

TomDoFuture opened this issue Oct 19, 2022 · 0 comments · Fixed by nuxt/framework#8487
Assignees

Comments

@TomDoFuture
Copy link

TomDoFuture commented Oct 19, 2022

Environment

  • Operating System: Darwin
  • Node Version: v16.15.1
  • Nuxt Version: 3.0.0-rc.12
  • Nitro Version: 0.6.0
  • Package Manager: npm@8.12.2
  • Builder: vite
  • User Config: vite, vue, routeRules, typescript, buildModules, modules, runtimeConfig, plugins, head, build, components, css, publicRuntimeConfig
  • Runtime Modules: nuxt-graphql-client@0.1.19
  • Build Modules: @nuxtjs/tailwindcss@5.3.3

Reproduction

Step 1. go into nuxt config.ts
Step 2. routeRules then do ssr : true or ssr : false on a route
Step 3. Observe your linter giving your a TS error!

Describe the bug

The types are not defined properly for routeRules , its missing the ssr property

Additional context

No response

Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants