Skip to content

Commit 074b2b6

Browse files
danielroerenovate[bot]
andcommittedMar 9, 2025··
fix(deps): update nuxt/scripts to v0.11 (#389)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Roe <daniel@roe.dev>
1 parent 2740f9a commit 074b2b6

File tree

5 files changed

+1468
-1770
lines changed

5 files changed

+1468
-1770
lines changed
 

‎.nuxtrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
typescript.includeWorkspace=true
22
modules[]=@nuxt/scripts
3-
modules[]=@nuxtjs/turnstile
3+
modules[]=@nuxtjs/turnstile
4+
modules[]=temp-scripts-fix

‎package.json

+15-14
Original file line numberDiff line numberDiff line change
@@ -53,37 +53,38 @@
5353
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
5454
},
5555
"dependencies": {
56-
"@nuxt/kit": "^3.13.2",
56+
"@nuxt/kit": "^3.16.0",
5757
"@types/cloudflare-turnstile": "0.2.2",
5858
"defu": "^6.1.4",
59-
"pathe": "^2.0.0"
59+
"pathe": "^2.0.3"
6060
},
6161
"devDependencies": {
62-
"@nuxt/eslint-config": "1.1.0",
62+
"@nuxt/eslint-config": "1.2.0",
6363
"@nuxt/module-builder": "0.8.4",
64-
"@nuxt/schema": "3.15.4",
65-
"@nuxt/scripts": "0.10.5",
66-
"@nuxt/test-utils": "3.17.1",
67-
"@types/node": "22.13.9",
68-
"@vitest/coverage-v8": "3.0.7",
64+
"@nuxt/schema": "3.16.0",
65+
"@nuxt/scripts": "0.11.1",
66+
"@nuxt/test-utils": "3.17.2",
67+
"@types/node": "22.13.10",
68+
"@vitest/coverage-v8": "3.0.8",
6969
"bumpp": "10.0.3",
7070
"conventional-changelog-conventionalcommits": "8.0.0",
71-
"eslint": "9.21.0",
71+
"eslint": "9.22.0",
7272
"expect-type": "1.2.0",
7373
"get-port-please": "3.1.2",
7474
"lint-staged": "15.4.3",
75-
"nuxt": "3.15.4",
76-
"playwright": "1.50.1",
75+
"nuxt": "3.16.0",
76+
"playwright": "1.51.0",
77+
"temp-scripts-fix": "./temp-scripts-fix",
7778
"typescript": "5.8.2",
78-
"vitest": "3.0.7",
79+
"vitest": "3.0.8",
7980
"vue-tsc": "2.2.8"
8081
},
8182
"peerDependencies": {
8283
"@nuxt/scripts": "^0.10.0"
8384
},
8485
"resolutions": {
85-
"@nuxt/kit": "3.15.4",
86+
"@nuxt/kit": "3.16.0",
8687
"@nuxtjs/turnstile": "link:."
8788
},
88-
"packageManager": "pnpm@10.5.2"
89+
"packageManager": "pnpm@10.6.1"
8990
}

‎playground/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
},
1010
"devDependencies": {
1111
"@nuxtjs/turnstile": "latest",
12-
"nuxt": "3.15.4"
12+
"nuxt": "3.16.0"
1313
}
1414
}

‎pnpm-lock.yaml

+1,432-1,754
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎temp-scripts-fix/index.ts

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { defineNuxtModule, useNuxt } from 'nuxt/kit'
2+
3+
export default defineNuxtModule({
4+
meta: {
5+
name: 'temp-scripts-fix',
6+
},
7+
setup() {
8+
const nuxt = useNuxt()
9+
10+
nuxt.hook('components:extend', (components) => {
11+
for (const c of [...components]) {
12+
if (c.filePath.includes('@nuxt/scripts')) {
13+
components.splice(components.indexOf(c), 1)
14+
}
15+
}
16+
})
17+
},
18+
})

2 commit comments

Comments
 (2)

Tkkg1994 commented on Mar 9, 2025

@Tkkg1994

@danielroe

I still receive an issue because of peerDependencies:

"@nuxt/scripts": "^0.10.0"

Meaning it won't update the scripts to it's latest https://github.com/nuxt/scripts/releases/tag/v0.11.1 release

Nuxt Build Error: [vite]: Rollup failed to resolve import "unenv/runtime/mock/noop" from "D:/Dokumente/GrifoDev-Website/node_modules/@nuxt/scripts/dist/runtime/validation/mock.js". nuxi 20:50:14
This is most likely unintended because it can break your application at runtime.

The issue comes from outdated scripts, but even when trying to install the latest script release manually it fails because of:

npm error Found: @nuxt/scripts@0.10.5
npm error node_modules/@nuxt/scripts
npm error peer @nuxt/scripts@"^0.10.0" from @nuxtjs/turnstile@0.9.13
npm error node_modules/@nuxtjs/turnstile
npm error @nuxtjs/turnstile@"^0.9.13" from the root project
npm error @nuxt/scripts@"0.11.1" from the root project
npm error
npm error Could not resolve dependency:
npm error @nuxt/scripts@"0.11.1" from the root project
npm error
npm error Conflicting peer dependency: @unhead/vue@2.0.0-rc.9
npm error node_modules/@unhead/vue
npm error peer @unhead/vue@"^2.0.0-rc.8" from @nuxt/scripts@0.11.1
npm error node_modules/@nuxt/scripts
npm error @nuxt/scripts@"0.11.1" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.

Should I open a new issue?

As soon as I uninstall turnstile all working fine

danielroe commented on Mar 9, 2025

@danielroe
CollaboratorAuthor

oops, that should have been updated - releasing a new patch

Please sign in to comment.