---
title: "NUXT_E8007"
description: "A route relies on client-side JavaScript but noScripts will strip scripts in production."
canonical_url: "https://nuxt.com/docs/4.x/errors/e8007"
---
# E8007

With `features.noScripts: 'production'` (the default when `noScripts` is enabled), scripts are only stripped from rendered HTML in production builds. In development the page still ships JavaScript, so behaviour that depends on it (lazy hydration strategies, `nuxt-client` components inside server components) appears to work in dev and then silently breaks after deployment.

This warning is emitted during development when a rendered route uses one of these features.

## Resolution

Either remove the client-side dependency from the affected route, or scope script stripping to the routes that are genuinely static using the `noScripts` route rule (which applies in development too, so any breakage is visible immediately):

```ts [nuxt.config.ts]
export default defineNuxtConfig({
  routeRules: {
    '/static/**': { noScripts: true },
  },
})
```

Alternatively, set `features.noScripts: 'all'` to strip scripts in development as well, making the production behaviour observable in dev.

<read-more to="https://nuxt.com/docs/guide/going-further/features#noscripts">



</read-more>


## Sitemap

See the full [sitemap](https://nuxt.com/sitemap.md) for all pages.
