test: add failing test for multiple transforms #65
Annotations
2 errors
test
Process completed with exit code 1.
|
test/template.test.ts > transform typescript template > equals:
src/utils/template.ts#L326
Error: [vue-sfc-transform] Error parsing TypeScript expression in template
❯ transformJsSnippets src/utils/template.ts:326:11
❯ Module.transpileVueTemplate src/utils/template.ts:159:24
❯ fixture test/template.test.ts:167:12
❯ test/template.test.ts:147:7
Caused by: Caused by: Error: Transform failed with 3 errors:
<stdin>:3:8: ERROR: The symbol "item" has already been declared
<stdin>:3:14: ERROR: The symbol "index" has already been declared
<stdin>:3:34: ERROR: The symbol "level" has already been declared
❯ failureErrorWithLog node_modules/.pnpm/esbuild@0.25.2/node_modules/esbuild/lib/main.js:1477:15
❯ node_modules/.pnpm/esbuild@0.25.2/node_modules/esbuild/lib/main.js:756:50
❯ responseCallbacks.<computed> node_modules/.pnpm/esbuild@0.25.2/node_modules/esbuild/lib/main.js:623:9
❯ handleIncomingPacket node_modules/.pnpm/esbuild@0.25.2/node_modules/esbuild/lib/main.js:678:12
❯ Socket.readFromStdout node_modules/.pnpm/esbuild@0.25.2/node_modules/esbuild/lib/main.js:601:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errors: [ { detail: undefined, id: '', location: { column: 8, file: '<stdin>', length: 4, line: 3, lineText: 'const { item, index = 3 as 3 | 4, level } = wrapper_2();', namespace: '', suggestion: '' }, notes: [ { location: { column: 8, file: '<stdin>', length: 4, line: 1, lineText: 'const { item, index, level = 0 as 0 | 1 } = wrapper_2();', namespace: '', suggestion: '' }, text: 'The symbol "item" was originally declared here:' } ], pluginName: '', text: 'The symbol "item" has already been declared' }, { detail: undefined, id: '', location: { column: 14, file: '<stdin>', length: 5, line: 3, lineText: 'const { item, index = 3 as 3 | 4, level } = wrapper_2();', namespace: '', suggestion: '' }, notes: [ { location: { column: 14, file: '<stdin>', length: 5, line: 1, lineText: 'const { item, index, level = 0 as 0 | 1 } = wrapper_2();', namespace: '', suggestion: '' }, text: 'The symbol "index" was originally declared here:' } ], pluginName: '', text: 'The symbol "index" has already been declared' }, { detail: undefined, id: '', location: { column: 34, file: '<stdin>', length: 5, line: 3, lineText: 'const { item, index = 3 as 3 | 4, level } = wrapper_2();', namespace: '', suggestion: '' }, notes: [ { location: { column: 21, file: '<stdin>', length: 5, line: 1, lineText: 'const { item, index, level = 0 as 0 | 1 } = wrapper_2();', namespace: '', suggestion: '' }, text: 'The symbol "level" was originally declared here:' } ], pluginName: '', text: 'The symbol "level" has already been declared' } ], warnings: [] }
|