Skip to content

fix: registry scripts bundling with scriptOptions.bundle #931

fix: registry scripts bundling with scriptOptions.bundle

fix: registry scripts bundling with scriptOptions.bundle #931

Triggered via push August 7, 2024 10:13
Status Failure
Total duration 4m 15s
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

4 errors
test/e2e/basic.test.ts: src/plugins/transform.ts#L130
TypeError: [nuxt:scripts:bundler-transformer] Cannot read properties of undefined (reading 'find') file: /home/runner/work/scripts/scripts/test/fixtures/basic/pages/mouseover-trigger.vue?macro=true&vue&type=script&setup=true&lang.ts ❯ Object.enter src/plugins/transform.ts:130:70 ❯ SyncWalker.visit node_modules/.pnpm/[email protected]/node_modules/estree-walker/src/sync.js:65:20 ❯ SyncWalker.visit node_modules/.pnpm/[email protected]/node_modules/estree-walker/src/sync.js:107:18 ❯ SyncWalker.visit node_modules/.pnpm/[email protected]/node_modules/estree-walker/src/sync.js:100:27 ❯ SyncWalker.visit node_modules/.pnpm/[email protected]/node_modules/estree-walker/src/sync.js:100:27 ❯ SyncWalker.visit node_modules/.pnpm/[email protected]/node_modules/estree-walker/src/sync.js:107:18 ❯ SyncWalker.visit node_modules/.pnpm/[email protected]/node_modules/estree-walker/src/sync.js:107:18 ❯ SyncWalker.visit node_modules/.pnpm/[email protected]/node_modules/estree-walker/src/sync.js:100:27 ❯ SyncWalker.visit node_modules/.pnpm/[email protected]/node_modules/estree-walker/src/sync.js:100:27 ❯ SyncWalker.visit node_modules/.pnpm/[email protected]/node_modules/estree-walker/src/sync.js:107:18 ❯ SyncWalker.visit node_modules/.pnpm/[email protected]/node_modules/estree-walker/src/sync.js:100:27 ❯ walk node_modules/.pnpm/[email protected]/node_modules/estree-walker/src/index.js:20:19 ❯ Object.transform src/plugins/transform.ts:33:32 ❯ Object.plugin.transform node_modules/.pnpm/[email protected]/node_modules/unplugin/dist/index.js:1537:25 ❯ node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:19892:40 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'PLUGIN_ERROR', plugin: 'nuxt:scripts:bundler-transformer', hook: 'transform', id: '/home/runner/work/scripts/scripts/test/fixtures/basic/pages/mouseover-trigger.vue?macro=true&vue&type=script&setup=true&lang.ts', watchFiles: [ '/home/runner/work/scripts/scripts/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]._cyh33zqpungshq5uz3u2gcyue4/node_modules/nuxt/dist/app/entry.js', 'package.json', '/home/runner/work/scripts/scripts/node_modules/.pnpm/[email protected][email protected]/node_modules/vue/dist/vue.runtime.esm-bundler.js', '/home/runner/work/scripts/scripts/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]._cyh33zqpungshq5uz3u2gcyue4/node_modules/nuxt/dist/app/nuxt.js', '/home/runner/work/scripts/scripts/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]._cyh33zqpungshq5uz3u2gcyue4/node_modules/nuxt/dist/app/composables/error.js', '/home/runner/work/scripts/scripts/node_modules/.pnpm/[email protected]/node_modules/ofetch/dist/index.mjs', '/home/runner/work/scripts/scripts/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]._cyh33zqpungshq5uz3u2gcyue4/node_modules/nuxt/dist/app/plugins/revive-payload.client.js', '/home/runner/work/scripts/scripts/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]._cyh33zqpungshq5uz3u2gcyue4/node_modules/nuxt/dist/head/runtime/plugins/unhead.js', '/home/runner/work/scripts/scripts/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]._cyh33zqpungshq5uz3u2gcyue4/node_modules/nuxt/dist/pages/runtime/plugins/router.js', '/home/runner/work/scripts/scripts/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]._cyh33zqpungshq5uz3u2gcyue4/node_modules/nuxt/dist/app/plugins/payload.client.js', '/home/runner/work/scripts/scripts/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]._cyh33zqpungshq5uz3u2gcyue4/node_modules/nuxt/dist/app/plugins/navigation-repaint.client.js', '/home/runner/work/scripts/scripts/node_modules/.pnpm/[email protected]
test/unit/transform.test.ts > nuxtScriptTransformer > string arg: src/plugins/transform.ts#L130
TypeError: Cannot read properties of undefined (reading 'find') ❯ Object.enter src/plugins/transform.ts:130:70 ❯ SyncWalker.visit node_modules/.pnpm/[email protected]/node_modules/estree-walker/src/sync.js:65:16 ❯ SyncWalker.visit node_modules/.pnpm/[email protected]/node_modules/estree-walker/src/sync.js:107:12 ❯ SyncWalker.visit node_modules/.pnpm/[email protected]/node_modules/estree-walker/src/sync.js:100:19 ❯ SyncWalker.visit node_modules/.pnpm/[email protected]/node_modules/estree-walker/src/sync.js:100:19 ❯ Module.walk node_modules/.pnpm/[email protected]/node_modules/estree-walker/src/index.js:20:18 ❯ Object.transform src/plugins/transform.ts:33:9 ❯ Object.plugin.transform node_modules/.pnpm/[email protected]/node_modules/unplugin/dist/index.mjs:1501:25 ❯ transform test/unit/transform.test.ts:12:38 ❯ test/unit/transform.test.ts:22:24
test/unit/transform.test.ts > nuxtScriptTransformer > useScript broken #1: src/plugins/transform.ts#L130
TypeError: Cannot read properties of undefined (reading 'find') ❯ Object.enter src/plugins/transform.ts:130:70 ❯ SyncWalker.visit node_modules/.pnpm/[email protected]/node_modules/estree-walker/src/sync.js:65:16 ❯ SyncWalker.visit node_modules/.pnpm/[email protected]/node_modules/estree-walker/src/sync.js:107:12 ❯ SyncWalker.visit node_modules/.pnpm/[email protected]/node_modules/estree-walker/src/sync.js:100:19 ❯ SyncWalker.visit node_modules/.pnpm/[email protected]/node_modules/estree-walker/src/sync.js:100:19 ❯ SyncWalker.visit node_modules/.pnpm/[email protected]/node_modules/estree-walker/src/sync.js:107:12 ❯ SyncWalker.visit node_modules/.pnpm/[email protected]/node_modules/estree-walker/src/sync.js:107:12 ❯ SyncWalker.visit node_modules/.pnpm/[email protected]/node_modules/estree-walker/src/sync.js:100:19 ❯ SyncWalker.visit node_modules/.pnpm/[email protected]/node_modules/estree-walker/src/sync.js:100:19 ❯ SyncWalker.visit node_modules/.pnpm/[email protected]/node_modules/estree-walker/src/sync.js:107:12
ci
Process completed with exit code 1.