nuxt
4.6.4 · 2 Nov 2026MIT3.6M / weekRepositoryHomepagenpmAtom feed
2.18.1 is the newest release of 2.x.
In short
1 deprecated9 new11 fixed11 changed8 internal
- Deprecated
postcss: Deprecate config support
Security
3 advisories affect 2.6.0; 4.6.0 fixes them
- Moderatenuxt vulnerable to Cross-site Scripting in navigateTo if used after SSRGHSA-vf6r-87q4-2vjf · 5 Aug 2024Fixed in 3.12.4
- LowNuxt: Incomplete fix for GHSA-934w-87qh-qr26: a `javascript:` URL prefixed with an ASCII control character executes from `<NuxtLink>` when `pages` is disabledGHSA-jjm6-p2m9-9w4x · 22 Oct 2026Fixed in 4.6.0
- LowCross-site scripting via <NoScript> slot content in Nuxt's head componentsGHSA-m3q2-p4fw-w38m · 16 Jun 2026Fixed in 3.21.7
Release note
Migration Guide
This version is addressing most of the problems of 2.5 and is without any breaking changes. For most of the users, a normal version upgrade would be enough. However, reading this guide can help to have a smooth upgrade.
General Tips
Using yarn as the package manager is more preferred as Nuxt is internally being tested against yarn
Before upgrade ensure to remove
yarn.lock,package-lock.jsonandnode_modulesAfter full install and testing, also consider upgrading other dependencies. The
yarn outdatedcommand can be used.
Missing App Dependencies
Because of how package managers (yarn, npm) work, a wrong version of a dependency from one of the other dependencies may be hoisted into node_modules. Nuxt is strict about this and provides instructions for dependency resolution so please follow it.
The well-known problem is with firebase package that requires to manually install node-fetch dependency in your project.
Reverting breaking changes
We accidentially introduced a change that broke the prod build for many people who are using Nuxt programatically. This has been resolved through #5413. Sorry for the inconveniences!
Core-js
Since core-js@2 and core-js@3 are both supported from babel 7.4.0, Starting from 2.6 Nuxt supports both versions (#5411). It is highly advised to stick with 2 (default) unless having a special dependency that needs 3. (Instructions for core-js@2 are not required but recommended)
core-js@2
yarn:
yarn add -D core-js@2 @babel/runtime-corejs2npm:
npm i -D core-js@2 @babel/runtime-corejs2
core-js@3
yarn:
yarn add -D core-js@3 @babel/runtime-corejs3npm:
npm i -D core-js@3 @babel/runtime-corejs3
Edit nuxt.config.js:
export default {
build: {
babel: {
presets({ isServer }) {
return [
[
require.resolve('@nuxt/babel-preset-app'),
// require.resolve('@nuxt/babel-preset-app-edge'), // For nuxt-edge users
{
buildTarget: isServer ? 'server' : 'client',
corejs: { version: 3 }
}
]
]
}
}
}
}Typescript
Nuxt 2.5 users may only require to add ts-node to the dependencies
Beta Testers : Replace
nuxtbynuxt-edge, and@nuxt/typescriptby@nuxt/typescript-edgein the following instructions.
Remove
nuxt-tsdependency (2.4 users only)yarn:
yarn remove nuxt-tsnpm:
npm remove nuxt-ts
Add
nuxtandts-nodetodependencies:yarn:
yarn add nuxt ts-nodenpm:
npm i nuxt ts-node
Add
@nuxt/typescripttodevDependencies:yarn:
yarn add -D @nuxt/typescriptnpm:
npm i -D @nuxt/typescript
Create an empty
tsconfig.jsonfile. Nuxt will automatically generate it with defaults at first run, then you can edit it to fit your needs
Features
babel-preset-app: Support specifying core-js version (#5411) (Xin Du (Clark))
cli: Add internal _generate and _build options
cli: Add
--quietoption tonuxt generatecommandtypescript: Detect typescript based on
tsconfig.jsonvue-renderer: Add csp meta tags
Fixes
Unexpected token export in importing babel runtime helper
core: Call ready to prevent breaking changes (Pooya Parsa)
build: Disable loading
babel.config.jsby default (#5365) (Xin Du (Clark))builder: Await for renderer to load resources
cli: Catch all possible errors thrown from proper-filelock
renderer: Retry render if renderer is in loading or created state
vue-app: Decode uri in
getlocationvue-app: Prevent mounting page twice on redirect
vue-renderer: Add the csp hash if
unsafe-inlinehasn't been specifiedtypes: Add type definition for typescript.typeCheck
Chore
- Deprecated
postcss: Deprecate config support
Dependency Upgrades
loading-screen: Use wss for https (nuxt/loading-screen#4)
loading-screen: Fallback to fetch if ws fails (nuxt/loading-screen#6)
node-proper-lockfile: Fix mtime precision on some filesystems (#88)
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.