Skip to content

fix: upgrade @vue/language-core #202

fix: upgrade @vue/language-core

fix: upgrade @vue/language-core #202

Triggered via pull request September 1, 2024 16:24
Status Failure
Total duration 2m 23s
Artifacts

ci.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

27 errors and 5 warnings
packages/twoslash-vue/test/fixtures.test.ts > ./fixtures/completion.vue: packages/twoslash/src/core.ts#L286
Error: ## Invalid completion query The request on line 19 for completions via ^| is in a removal range. This is likely that the positioning is off. ❯ twoslasher2 packages/twoslash/src/core.ts:286:17 ❯ twoslasher packages/twoslash-vue/src/index.ts:160:20 ❯ packages/twoslash-vue/test/fixtures.test.ts:36:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { title: 'Invalid completion query', description: 'The request on line 19 for completions via ^| is in a removal range.', recommendation: 'This is likely that the positioning is off.', code: undefined }
packages/twoslash-vue/test/fixtures.test.ts > ./fixtures/cut-around-vue.vue: packages/twoslash/src/validation.ts#L55
Error: ## Errors were thrown in the sample, but not included in an error tag These errors were not marked as being expected: 2304 2657 1109 17008 1005 1381. Expected: // @errors: 2304 2657 1109 17008 1005 1381 Compiler Errors: index.tsx [2304] 124 - Cannot find name 'hi'. [2304] 177 - Cannot find name 'Foo'. [2304] 184 - Cannot find name 'bar'. [2304] 211 - Cannot find name 'hi'. [2657] 0 - JSX expressions must have one parent element. [1109] 162 - Expression expected. [17008] 177 - JSX element 'Foo' has no corresponding closing tag. [1005] 187 - '}' expected. [1381] 197 - Unexpected token. Did you mean `{'}'}` or `}`? [1381] 216 - Unexpected token. Did you mean `{'}'}` or `}`? ❯ Module.validateCodeForErrors packages/twoslash/src/validation.ts:55:20 ❯ twoslasher2 packages/twoslash/src/core.ts:400:7 ❯ twoslasher packages/twoslash-vue/src/index.ts:160:20 ❯ packages/twoslash-vue/test/fixtures.test.ts:36:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { title: 'Errors were thrown in the sample, but not included in an error tag', description: 'These errors were not marked as being expected: 2304 2657 1109 17008 1005 1381. \nExpected: // @errors: 2304 2657 1109 17008 1005 1381', recommendation: 'Compiler Errors:\n\nindex.tsx\n [2304] 124 - Cannot find name \'hi\'.\n [2304] 177 - Cannot find name \'Foo\'.\n [2304] 184 - Cannot find name \'bar\'.\n [2304] 211 - Cannot find name \'hi\'.\n [2657] 0 - JSX expressions must have one parent element.\n [1109] 162 - Expression expected.\n [17008] 177 - JSX element \'Foo\' has no corresponding closing tag.\n [1005] 187 - \'}\' expected.\n [1381] 197 - Unexpected token. Did you mean `{\'}\'}` or `}`?\n [1381] 216 - Unexpected token. Did you mean `{\'}\'}` or `}`?', code: undefined }
packages/twoslash-vue/test/fixtures.test.ts > ./fixtures/cut-in-vue.vue: packages/twoslash/src/validation.ts#L55
Error: ## Errors were thrown in the sample, but not included in an error tag These errors were not marked as being expected: 2322 2304 18004 2657 1005. Expected: // @errors: 2322 2304 18004 2657 1005 Compiler Errors: index.tsx [2322] 8 - Type '{ setup: true; lang: string; }' is not assignable to type 'ScriptHTMLAttributes & ReservedProps'. Property 'setup' does not exist on type 'ScriptHTMLAttributes & ReservedProps'. [2304] 127 - Cannot find name 'hi'. [18004] 330 - No value exists in scope for the shorthand property 'hi'. Either declare one or provide an initializer. [2657] 0 - JSX expressions must have one parent element. [1005] 332 - ',' expected. ❯ Module.validateCodeForErrors packages/twoslash/src/validation.ts:55:20 ❯ twoslasher2 packages/twoslash/src/core.ts:400:7 ❯ twoslasher packages/twoslash-vue/src/index.ts:160:20 ❯ packages/twoslash-vue/test/fixtures.test.ts:36:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { title: 'Errors were thrown in the sample, but not included in an error tag', description: 'These errors were not marked as being expected: 2322 2304 18004 2657 1005. \nExpected: // @errors: 2322 2304 18004 2657 1005', recommendation: 'Compiler Errors:\n\nindex.tsx\n [2322] 8 - Type \'{ setup: true; lang: string; }\' is not assignable to type \'ScriptHTMLAttributes & ReservedProps\'.\n Property \'setup\' does not exist on type \'ScriptHTMLAttributes & ReservedProps\'.\n [2304] 127 - Cannot find name \'hi\'.\n [18004] 330 - No value exists in scope for the shorthand property \'hi\'. Either declare one or provide an initializer.\n [2657] 0 - JSX expressions must have one parent element.\n [1005] 332 - \',\' expected.', code: undefined }
packages/twoslash-vue/test/fixtures.test.ts > ./fixtures/example.vue: packages/twoslash/src/validation.ts#L55
Error: ## Errors were thrown in the sample, but not included in an error tag These errors were not marked as being expected: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128. Expected: // @errors: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128 Compiler Errors: index.tsx [2322] 8 - Type '{ setup: true; lang: string; }' is not assignable to type 'ScriptHTMLAttributes & ReservedProps'. Property 'setup' does not exist on type 'ScriptHTMLAttributes & ReservedProps'. [2304] 34 - Cannot find name 'ref'. [2304] 39 - Cannot find name 'computed'. [2304] 252 - Cannot find name 'msg'. [2304] 294 - Cannot find name 'greet'. [2532] 322 - Object is possibly 'undefined'. [18004] 396 - No value exists in scope for the shorthand property 'msg'. Either declare one or provide an initializer. [18004] 416 - No value exists in scope for the shorthand property 'count'. Either declare one or provide an initializer. [2304] 452 - Cannot find name 'template'. [2657] 0 - JSX expressions must have one parent element. [1382] 134 - Unexpected token. Did you mean `{'>'}` or `>`? [1005] 206 - '}' expected. [1109] 237 - Expression expected. [1005] 255 - '}' expected. [1381] 270 - Unexpected token. Did you mean `{'}'}` or `}`? [1381] 274 - Unexpected token. Did you mean `{'}'}` or `}`? [1005] 302 - '}' expected. [1381] 340 - Unexpected token. Did you mean `{'}'}` or `}`? [1381] 342 - Unexpected token. Did you mean `{'}'}` or `}`? [1003] 376 - Identifier expected. [1382] 392 - Unexpected token. Did you mean `{'>'}` or `>`? [17002] 426 - Expected corresponding JSX closing tag for 'template'. [1128] 450 - Declaration or statement expected. [1109] 461 - Expression expected. ❯ Module.validateCodeForErrors packages/twoslash/src/validation.ts:55:20 ❯ twoslasher2 packages/twoslash/src/core.ts:400:7 ❯ twoslasher packages/twoslash-vue/src/index.ts:160:20 ❯ packages/twoslash-vue/test/fixtures.test.ts:36:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { title: 'Errors were thrown in the sample, but not included in an error tag', description: 'These errors were not marked as being expected: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128. \nExpected: // @errors: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128', recommendation: 'Compiler Errors:\n\nindex.tsx\n [2322] 8 - Type \'{ setup: true; lang: string; }\' is not assignable to type \'ScriptHTMLAttributes & ReservedProps\'.\n Property \'setup\' does not exist on type \'ScriptHTMLAttributes & ReservedProps\'.\n [2304] 34 - Cannot find name \'ref\'.\n [2304] 39 - Cannot find name \'computed\'.\n [2304] 252 - Cannot find name \'msg\'.\n [2304] 294 - Cannot find name \'greet\'.\n [2532] 322 - Object is possibly \'undefined\'.\n [18004] 396 - No value exists in scope for the shorthand property \'msg\'. Either declare one or provide an initializer.\n [18004] 416 - No value exists in scope for the shorthand property \'count\'. Either declare one or provide an initializer.\n [2304] 452 - Cannot find name \'template\'.\n [2657] 0 - JSX expressions must have one parent element.\n [1382] 134 - Unexpected token. Did you mean `{\'>\'}` or `>`?\n [1005] 206 - \'}\' expected.\n [1109] 237 - Expression expected.\n [1005] 255 - \'}\' expected.\n [1381] 270 - Unexpected token. Did you mean `{\'}\'}` or `}`?\n [1381] 274 - Unexpected token. Did you mean `{\'}\'}` or `}`?\n [1005] 302 - \'}\' expected.\n [1381] 340 - Unexpected token. Did you mean `{\'}\'}` or `}`?\n [1381] 342 - Unexpected token. Did you mean `{\'}\'}` or `}`?\n [1003] 376 - Identifier expected.\n [1382] 392 - Unexpected token. Did you mean `{\'>\'}` or `>`?\n [17002] 426 - Expected corresponding JSX closing tag for \'template\'.\n [1128] 450 - Declaration or statement expected.\n [1109] 461 - Expression expected.', code: undefined }
packages/twoslash-vue/test/fixtures.test.ts > ./fixtures/query-basic.vue: packages/twoslash/src/validation.ts#L55
Error: ## Errors were thrown in the sample, but not included in an error tag These errors were not marked as being expected: 2322 2304 18004 2657 1382 1003 17002 1128 1109. Expected: // @errors: 2322 2304 18004 2657 1382 1003 17002 1128 1109 Compiler Errors: index.tsx [2322] 8 - Type '{ setup: true; lang: string; }' is not assignable to type 'ScriptHTMLAttributes & ReservedProps'. Property 'setup' does not exist on type 'ScriptHTMLAttributes & ReservedProps'. [2304] 34 - Cannot find name 'ref'. [2304] 39 - Cannot find name 'computed'. [18004] 220 - No value exists in scope for the shorthand property 'count'. Either declare one or provide an initializer. [18004] 272 - No value exists in scope for the shorthand property 'count'. Either declare one or provide an initializer. [2304] 309 - Cannot find name 'template'. [2657] 0 - JSX expressions must have one parent element. [1382] 129 - Unexpected token. Did you mean `{'>'}` or `>`? [1003] 190 - Identifier expected. [1382] 206 - Unexpected token. Did you mean `{'>'}` or `>`? [17002] 230 - Expected corresponding JSX closing tag for 'template'. [1128] 307 - Declaration or statement expected. [1109] 318 - Expression expected. ❯ Module.validateCodeForErrors packages/twoslash/src/validation.ts:55:20 ❯ twoslasher2 packages/twoslash/src/core.ts:400:7 ❯ twoslasher packages/twoslash-vue/src/index.ts:160:20 ❯ packages/twoslash-vue/test/fixtures.test.ts:36:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { title: 'Errors were thrown in the sample, but not included in an error tag', description: 'These errors were not marked as being expected: 2322 2304 18004 2657 1382 1003 17002 1128 1109. \nExpected: // @errors: 2322 2304 18004 2657 1382 1003 17002 1128 1109', recommendation: 'Compiler Errors:\n\nindex.tsx\n [2322] 8 - Type \'{ setup: true; lang: string; }\' is not assignable to type \'ScriptHTMLAttributes & ReservedProps\'.\n Property \'setup\' does not exist on type \'ScriptHTMLAttributes & ReservedProps\'.\n [2304] 34 - Cannot find name \'ref\'.\n [2304] 39 - Cannot find name \'computed\'.\n [18004] 220 - No value exists in scope for the shorthand property \'count\'. Either declare one or provide an initializer.\n [18004] 272 - No value exists in scope for the shorthand property \'count\'. Either declare one or provide an initializer.\n [2304] 309 - Cannot find name \'template\'.\n [2657] 0 - JSX expressions must have one parent element.\n [1382] 129 - Unexpected token. Did you mean `{\'>\'}` or `>`?\n [1003] 190 - Identifier expected.\n [1382] 206 - Unexpected token. Did you mean `{\'>\'}` or `>`?\n [17002] 230 - Expected corresponding JSX closing tag for \'template\'.\n [1128] 307 - Declaration or statement expected.\n [1109] 318 - Expression expected.', code: undefined }
packages/twoslash-vue/test/query.test.ts: packages/twoslash/src/validation.ts#L55
Error: ## Errors were thrown in the sample, but not included in an error tag These errors were not marked as being expected: 2322 2304 18004 2657 1382 1003 17002 1128 1109. Expected: // @errors: 2322 2304 18004 2657 1382 1003 17002 1128 1109 Compiler Errors: index.tsx [2322] 8 - Type '{ setup: true; lang: string; }' is not assignable to type 'ScriptHTMLAttributes & ReservedProps'. Property 'setup' does not exist on type 'ScriptHTMLAttributes & ReservedProps'. [2304] 34 - Cannot find name 'ref'. [2304] 39 - Cannot find name 'computed'. [18004] 220 - No value exists in scope for the shorthand property 'count'. Either declare one or provide an initializer. [18004] 272 - No value exists in scope for the shorthand property 'count'. Either declare one or provide an initializer. [2304] 309 - Cannot find name 'template'. [2657] 0 - JSX expressions must have one parent element. [1382] 129 - Unexpected token. Did you mean `{'>'}` or `>`? [1003] 190 - Identifier expected. [1382] 206 - Unexpected token. Did you mean `{'>'}` or `>`? [17002] 230 - Expected corresponding JSX closing tag for 'template'. [1128] 307 - Declaration or statement expected. [1109] 318 - Expression expected. ❯ Module.validateCodeForErrors packages/twoslash/src/validation.ts:55:20 ❯ twoslasher2 packages/twoslash/src/core.ts:400:7 ❯ twoslasher packages/twoslash-vue/src/index.ts:160:20 ❯ packages/twoslash-vue/test/query.test.ts:9:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { title: 'Errors were thrown in the sample, but not included in an error tag', description: 'These errors were not marked as being expected: 2322 2304 18004 2657 1382 1003 17002 1128 1109. \nExpected: // @errors: 2322 2304 18004 2657 1382 1003 17002 1128 1109', recommendation: 'Compiler Errors:\n\nindex.tsx\n [2322] 8 - Type \'{ setup: true; lang: string; }\' is not assignable to type \'ScriptHTMLAttributes & ReservedProps\'.\n Property \'setup\' does not exist on type \'ScriptHTMLAttributes & ReservedProps\'.\n [2304] 34 - Cannot find name \'ref\'.\n [2304] 39 - Cannot find name \'computed\'.\n [18004] 220 - No value exists in scope for the shorthand property \'count\'. Either declare one or provide an initializer.\n [18004] 272 - No value exists in scope for the shorthand property \'count\'. Either declare one or provide an initializer.\n [2304] 309 - Cannot find name \'template\'.\n [2657] 0 - JSX expressions must have one parent element.\n [1382] 129 - Unexpected token. Did you mean `{\'>\'}` or `>`?\n [1003] 190 - Identifier expected.\n [1382] 206 - Unexpected token. Did you mean `{\'>\'}` or `>`?\n [17002] 230 - Expected corresponding JSX closing tag for \'template\'.\n [1128] 307 - Declaration or statement expected.\n [1109] 318 - Expression expected.', code: undefined }
packages/twoslash-vue/test/shikiji.test.ts > highlight vue: packages/twoslash/src/validation.ts#L55
Error: ## Errors were thrown in the sample, but not included in an error tag These errors were not marked as being expected: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128. Expected: // @errors: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128 Compiler Errors: index.tsx [2322] 8 - Type '{ setup: true; lang: string; }' is not assignable to type 'ScriptHTMLAttributes & ReservedProps'. Property 'setup' does not exist on type 'ScriptHTMLAttributes & ReservedProps'. [2304] 34 - Cannot find name 'ref'. [2304] 39 - Cannot find name 'computed'. [2304] 252 - Cannot find name 'msg'. [2304] 294 - Cannot find name 'greet'. [2532] 322 - Object is possibly 'undefined'. [18004] 396 - No value exists in scope for the shorthand property 'msg'. Either declare one or provide an initializer. [18004] 416 - No value exists in scope for the shorthand property 'count'. Either declare one or provide an initializer. [2304] 452 - Cannot find name 'template'. [2657] 0 - JSX expressions must have one parent element. [1382] 134 - Unexpected token. Did you mean `{'>'}` or `>`? [1005] 206 - '}' expected. [1109] 237 - Expression expected. [1005] 255 - '}' expected. [1381] 270 - Unexpected token. Did you mean `{'}'}` or `}`? [1381] 274 - Unexpected token. Did you mean `{'}'}` or `}`? [1005] 302 - '}' expected. [1381] 340 - Unexpected token. Did you mean `{'}'}` or `}`? [1381] 342 - Unexpected token. Did you mean `{'}'}` or `}`? [1003] 376 - Identifier expected. [1382] 392 - Unexpected token. Did you mean `{'>'}` or `>`? [17002] 426 - Expected corresponding JSX closing tag for 'template'. [1128] 450 - Declaration or statement expected. [1109] 461 - Expression expected. ❯ Module.validateCodeForErrors packages/twoslash/src/validation.ts:55:20 ❯ twoslasher2 packages/twoslash/src/core.ts:400:7 ❯ twoslasher packages/twoslash-vue/src/index.ts:160:20 ❯ Object.preprocess node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/twoslash/dist/core.mjs:1122:30 ❯ codeToHast node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/core/dist/index.mjs:1126:41 ❯ codeToHtml node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/core/dist/index.mjs:4687:25 ❯ Object.codeToHtml node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/core/dist/index.mjs:5615:40 ❯ Module.codeToHtml node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/core/dist/index.mjs:5737:26 ❯ packages/twoslash-vue/test/shikiji.test.ts:19:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { title: 'Errors were thrown in the sample, but not included in an error tag', description: 'These errors were not marked as being expected: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128. \nExpected: // @errors: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128', recommendation: 'Compiler Errors:\n\nindex.tsx\n [2322] 8 - Type \'{ setup: true; lang: string; }\' is not assignable to type \'ScriptHTMLAttributes & ReservedProps\'.\n Property \'setup\' does not exist on type \'ScriptHTMLAttributes & ReservedProps\'.\n [2304] 34 - Cannot find name \'ref\'.\n [2304] 39 - Cannot find name \'computed\'.\n [2304] 252 - Cannot find name \'msg\'.\n [2304] 294 - Cannot find name \'greet\'.\n [2532] 322 - Object is possibly \'undefined\'.\n [18004] 396 - No value exists in scope for the shorthand property \'msg\'. Either declare one or provide an initializer.\n [18004] 416 - No value exists in scope for the shorthand property \'count\'. Either declare one or provide an initializer.\n [2304] 452 - Cannot find name \'template\'.\n [2657] 0 - JSX expressions must have one parent element.\n [1382] 134 - Unexpected token. Did you mean `{\'>\'}` or `>`?\n [1005] 206 - \'}\' expected.\n [1109] 237 - Expression expected.\n [1005] 255 - \'}\' expected.\n [1381] 270 - Unexpected token. Did you mean `{\'}\'}` or `}`?\n [1381] 274 - Unexpected token. Did you mean `{\'}\'}` or `}`?\n [1005] 302 - \'}\' expected.\n [1381] 34
packages/twoslash-vue/test/shikiji.test.ts > highlight raw: packages/twoslash/src/validation.ts#L55
Error: ## Errors were thrown in the sample, but not included in an error tag These errors were not marked as being expected: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128. Expected: // @errors: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128 Compiler Errors: index.tsx [2322] 8 - Type '{ setup: true; lang: string; }' is not assignable to type 'ScriptHTMLAttributes & ReservedProps'. Property 'setup' does not exist on type 'ScriptHTMLAttributes & ReservedProps'. [2304] 34 - Cannot find name 'ref'. [2304] 39 - Cannot find name 'computed'. [2304] 252 - Cannot find name 'msg'. [2304] 294 - Cannot find name 'greet'. [2532] 322 - Object is possibly 'undefined'. [18004] 396 - No value exists in scope for the shorthand property 'msg'. Either declare one or provide an initializer. [18004] 416 - No value exists in scope for the shorthand property 'count'. Either declare one or provide an initializer. [2304] 452 - Cannot find name 'template'. [2657] 0 - JSX expressions must have one parent element. [1382] 134 - Unexpected token. Did you mean `{'>'}` or `>`? [1005] 206 - '}' expected. [1109] 237 - Expression expected. [1005] 255 - '}' expected. [1381] 270 - Unexpected token. Did you mean `{'}'}` or `}`? [1381] 274 - Unexpected token. Did you mean `{'}'}` or `}`? [1005] 302 - '}' expected. [1381] 340 - Unexpected token. Did you mean `{'}'}` or `}`? [1381] 342 - Unexpected token. Did you mean `{'}'}` or `}`? [1003] 376 - Identifier expected. [1382] 392 - Unexpected token. Did you mean `{'>'}` or `>`? [17002] 426 - Expected corresponding JSX closing tag for 'template'. [1128] 450 - Declaration or statement expected. [1109] 461 - Expression expected. ❯ Module.validateCodeForErrors packages/twoslash/src/validation.ts:55:20 ❯ twoslasher2 packages/twoslash/src/core.ts:400:7 ❯ twoslasher packages/twoslash-vue/src/index.ts:160:20 ❯ Object.preprocess node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/twoslash/dist/core.mjs:1122:30 ❯ codeToHast node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/core/dist/index.mjs:1126:41 ❯ codeToHtml node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/core/dist/index.mjs:4687:25 ❯ Object.codeToHtml node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/core/dist/index.mjs:5615:40 ❯ Module.codeToHtml node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/core/dist/index.mjs:5737:26 ❯ packages/twoslash-vue/test/shikiji.test.ts:41:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { title: 'Errors were thrown in the sample, but not included in an error tag', description: 'These errors were not marked as being expected: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128. \nExpected: // @errors: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128', recommendation: 'Compiler Errors:\n\nindex.tsx\n [2322] 8 - Type \'{ setup: true; lang: string; }\' is not assignable to type \'ScriptHTMLAttributes & ReservedProps\'.\n Property \'setup\' does not exist on type \'ScriptHTMLAttributes & ReservedProps\'.\n [2304] 34 - Cannot find name \'ref\'.\n [2304] 39 - Cannot find name \'computed\'.\n [2304] 252 - Cannot find name \'msg\'.\n [2304] 294 - Cannot find name \'greet\'.\n [2532] 322 - Object is possibly \'undefined\'.\n [18004] 396 - No value exists in scope for the shorthand property \'msg\'. Either declare one or provide an initializer.\n [18004] 416 - No value exists in scope for the shorthand property \'count\'. Either declare one or provide an initializer.\n [2304] 452 - Cannot find name \'template\'.\n [2657] 0 - JSX expressions must have one parent element.\n [1382] 134 - Unexpected token. Did you mean `{\'>\'}` or `>`?\n [1005] 206 - \'}\' expected.\n [1109] 237 - Expression expected.\n [1005] 255 - \'}\' expected.\n [1381] 270 - Unexpected token. Did you mean `{\'}\'}` or `}`?\n [1381] 274 - Unexpected token. Did you mean `{\'}\'}` or `}`?\n [1005] 302 - \'}\' expected.\n [1381] 34
test (lts/*, macos-latest)
Process completed with exit code 1.
packages/twoslash-vue/test/fixtures.test.ts > ./fixtures/completion.vue: packages/twoslash/src/core.ts#L286
Error: ## Invalid completion query The request on line 19 for completions via ^| is in a removal range. This is likely that the positioning is off. ❯ twoslasher2 packages/twoslash/src/core.ts:286:17 ❯ twoslasher packages/twoslash-vue/src/index.ts:160:20 ❯ packages/twoslash-vue/test/fixtures.test.ts:36:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { title: 'Invalid completion query', description: 'The request on line 19 for completions via ^| is in a removal range.', recommendation: 'This is likely that the positioning is off.', code: undefined }
packages/twoslash-vue/test/fixtures.test.ts > ./fixtures/cut-around-vue.vue: packages/twoslash/src/validation.ts#L55
Error: ## Errors were thrown in the sample, but not included in an error tag These errors were not marked as being expected: 2304 2657 1109 17008 1005 1381. Expected: // @errors: 2304 2657 1109 17008 1005 1381 Compiler Errors: index.tsx [2304] 124 - Cannot find name 'hi'. [2304] 177 - Cannot find name 'Foo'. [2304] 184 - Cannot find name 'bar'. [2304] 211 - Cannot find name 'hi'. [2657] 0 - JSX expressions must have one parent element. [1109] 162 - Expression expected. [17008] 177 - JSX element 'Foo' has no corresponding closing tag. [1005] 187 - '}' expected. [1381] 197 - Unexpected token. Did you mean `{'}'}` or `}`? [1381] 216 - Unexpected token. Did you mean `{'}'}` or `}`? ❯ Module.validateCodeForErrors packages/twoslash/src/validation.ts:55:20 ❯ twoslasher2 packages/twoslash/src/core.ts:400:7 ❯ twoslasher packages/twoslash-vue/src/index.ts:160:20 ❯ packages/twoslash-vue/test/fixtures.test.ts:36:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { title: 'Errors were thrown in the sample, but not included in an error tag', description: 'These errors were not marked as being expected: 2304 2657 1109 17008 1005 1381. \nExpected: // @errors: 2304 2657 1109 17008 1005 1381', recommendation: 'Compiler Errors:\n\nindex.tsx\n [2304] 124 - Cannot find name \'hi\'.\n [2304] 177 - Cannot find name \'Foo\'.\n [2304] 184 - Cannot find name \'bar\'.\n [2304] 211 - Cannot find name \'hi\'.\n [2657] 0 - JSX expressions must have one parent element.\n [1109] 162 - Expression expected.\n [17008] 177 - JSX element \'Foo\' has no corresponding closing tag.\n [1005] 187 - \'}\' expected.\n [1381] 197 - Unexpected token. Did you mean `{\'}\'}` or `}`?\n [1381] 216 - Unexpected token. Did you mean `{\'}\'}` or `}`?', code: undefined }
packages/twoslash-vue/test/fixtures.test.ts > ./fixtures/cut-in-vue.vue: packages/twoslash/src/validation.ts#L55
Error: ## Errors were thrown in the sample, but not included in an error tag These errors were not marked as being expected: 2322 2304 18004 2657 1005. Expected: // @errors: 2322 2304 18004 2657 1005 Compiler Errors: index.tsx [2322] 8 - Type '{ setup: true; lang: string; }' is not assignable to type 'ScriptHTMLAttributes & ReservedProps'. Property 'setup' does not exist on type 'ScriptHTMLAttributes & ReservedProps'. [2304] 127 - Cannot find name 'hi'. [18004] 330 - No value exists in scope for the shorthand property 'hi'. Either declare one or provide an initializer. [2657] 0 - JSX expressions must have one parent element. [1005] 332 - ',' expected. ❯ Module.validateCodeForErrors packages/twoslash/src/validation.ts:55:20 ❯ twoslasher2 packages/twoslash/src/core.ts:400:7 ❯ twoslasher packages/twoslash-vue/src/index.ts:160:20 ❯ packages/twoslash-vue/test/fixtures.test.ts:36:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { title: 'Errors were thrown in the sample, but not included in an error tag', description: 'These errors were not marked as being expected: 2322 2304 18004 2657 1005. \nExpected: // @errors: 2322 2304 18004 2657 1005', recommendation: 'Compiler Errors:\n\nindex.tsx\n [2322] 8 - Type \'{ setup: true; lang: string; }\' is not assignable to type \'ScriptHTMLAttributes & ReservedProps\'.\n Property \'setup\' does not exist on type \'ScriptHTMLAttributes & ReservedProps\'.\n [2304] 127 - Cannot find name \'hi\'.\n [18004] 330 - No value exists in scope for the shorthand property \'hi\'. Either declare one or provide an initializer.\n [2657] 0 - JSX expressions must have one parent element.\n [1005] 332 - \',\' expected.', code: undefined }
packages/twoslash-vue/test/fixtures.test.ts > ./fixtures/example.vue: packages/twoslash/src/validation.ts#L55
Error: ## Errors were thrown in the sample, but not included in an error tag These errors were not marked as being expected: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128. Expected: // @errors: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128 Compiler Errors: index.tsx [2322] 8 - Type '{ setup: true; lang: string; }' is not assignable to type 'ScriptHTMLAttributes & ReservedProps'. Property 'setup' does not exist on type 'ScriptHTMLAttributes & ReservedProps'. [2304] 34 - Cannot find name 'ref'. [2304] 39 - Cannot find name 'computed'. [2304] 252 - Cannot find name 'msg'. [2304] 294 - Cannot find name 'greet'. [2532] 322 - Object is possibly 'undefined'. [18004] 396 - No value exists in scope for the shorthand property 'msg'. Either declare one or provide an initializer. [18004] 416 - No value exists in scope for the shorthand property 'count'. Either declare one or provide an initializer. [2304] 452 - Cannot find name 'template'. [2657] 0 - JSX expressions must have one parent element. [1382] 134 - Unexpected token. Did you mean `{'>'}` or `>`? [1005] 206 - '}' expected. [1109] 237 - Expression expected. [1005] 255 - '}' expected. [1381] 270 - Unexpected token. Did you mean `{'}'}` or `}`? [1381] 274 - Unexpected token. Did you mean `{'}'}` or `}`? [1005] 302 - '}' expected. [1381] 340 - Unexpected token. Did you mean `{'}'}` or `}`? [1381] 342 - Unexpected token. Did you mean `{'}'}` or `}`? [1003] 376 - Identifier expected. [1382] 392 - Unexpected token. Did you mean `{'>'}` or `>`? [17002] 426 - Expected corresponding JSX closing tag for 'template'. [1128] 450 - Declaration or statement expected. [1109] 461 - Expression expected. ❯ Module.validateCodeForErrors packages/twoslash/src/validation.ts:55:20 ❯ twoslasher2 packages/twoslash/src/core.ts:400:7 ❯ twoslasher packages/twoslash-vue/src/index.ts:160:20 ❯ packages/twoslash-vue/test/fixtures.test.ts:36:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { title: 'Errors were thrown in the sample, but not included in an error tag', description: 'These errors were not marked as being expected: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128. \nExpected: // @errors: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128', recommendation: 'Compiler Errors:\n\nindex.tsx\n [2322] 8 - Type \'{ setup: true; lang: string; }\' is not assignable to type \'ScriptHTMLAttributes & ReservedProps\'.\n Property \'setup\' does not exist on type \'ScriptHTMLAttributes & ReservedProps\'.\n [2304] 34 - Cannot find name \'ref\'.\n [2304] 39 - Cannot find name \'computed\'.\n [2304] 252 - Cannot find name \'msg\'.\n [2304] 294 - Cannot find name \'greet\'.\n [2532] 322 - Object is possibly \'undefined\'.\n [18004] 396 - No value exists in scope for the shorthand property \'msg\'. Either declare one or provide an initializer.\n [18004] 416 - No value exists in scope for the shorthand property \'count\'. Either declare one or provide an initializer.\n [2304] 452 - Cannot find name \'template\'.\n [2657] 0 - JSX expressions must have one parent element.\n [1382] 134 - Unexpected token. Did you mean `{\'>\'}` or `>`?\n [1005] 206 - \'}\' expected.\n [1109] 237 - Expression expected.\n [1005] 255 - \'}\' expected.\n [1381] 270 - Unexpected token. Did you mean `{\'}\'}` or `}`?\n [1381] 274 - Unexpected token. Did you mean `{\'}\'}` or `}`?\n [1005] 302 - \'}\' expected.\n [1381] 340 - Unexpected token. Did you mean `{\'}\'}` or `}`?\n [1381] 342 - Unexpected token. Did you mean `{\'}\'}` or `}`?\n [1003] 376 - Identifier expected.\n [1382] 392 - Unexpected token. Did you mean `{\'>\'}` or `>`?\n [17002] 426 - Expected corresponding JSX closing tag for \'template\'.\n [1128] 450 - Declaration or statement expected.\n [1109] 461 - Expression expected.', code: undefined }
packages/twoslash-vue/test/fixtures.test.ts > ./fixtures/query-basic.vue: packages/twoslash/src/validation.ts#L55
Error: ## Errors were thrown in the sample, but not included in an error tag These errors were not marked as being expected: 2322 2304 18004 2657 1382 1003 17002 1128 1109. Expected: // @errors: 2322 2304 18004 2657 1382 1003 17002 1128 1109 Compiler Errors: index.tsx [2322] 8 - Type '{ setup: true; lang: string; }' is not assignable to type 'ScriptHTMLAttributes & ReservedProps'. Property 'setup' does not exist on type 'ScriptHTMLAttributes & ReservedProps'. [2304] 34 - Cannot find name 'ref'. [2304] 39 - Cannot find name 'computed'. [18004] 220 - No value exists in scope for the shorthand property 'count'. Either declare one or provide an initializer. [18004] 272 - No value exists in scope for the shorthand property 'count'. Either declare one or provide an initializer. [2304] 309 - Cannot find name 'template'. [2657] 0 - JSX expressions must have one parent element. [1382] 129 - Unexpected token. Did you mean `{'>'}` or `>`? [1003] 190 - Identifier expected. [1382] 206 - Unexpected token. Did you mean `{'>'}` or `>`? [17002] 230 - Expected corresponding JSX closing tag for 'template'. [1128] 307 - Declaration or statement expected. [1109] 318 - Expression expected. ❯ Module.validateCodeForErrors packages/twoslash/src/validation.ts:55:20 ❯ twoslasher2 packages/twoslash/src/core.ts:400:7 ❯ twoslasher packages/twoslash-vue/src/index.ts:160:20 ❯ packages/twoslash-vue/test/fixtures.test.ts:36:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { title: 'Errors were thrown in the sample, but not included in an error tag', description: 'These errors were not marked as being expected: 2322 2304 18004 2657 1382 1003 17002 1128 1109. \nExpected: // @errors: 2322 2304 18004 2657 1382 1003 17002 1128 1109', recommendation: 'Compiler Errors:\n\nindex.tsx\n [2322] 8 - Type \'{ setup: true; lang: string; }\' is not assignable to type \'ScriptHTMLAttributes & ReservedProps\'.\n Property \'setup\' does not exist on type \'ScriptHTMLAttributes & ReservedProps\'.\n [2304] 34 - Cannot find name \'ref\'.\n [2304] 39 - Cannot find name \'computed\'.\n [18004] 220 - No value exists in scope for the shorthand property \'count\'. Either declare one or provide an initializer.\n [18004] 272 - No value exists in scope for the shorthand property \'count\'. Either declare one or provide an initializer.\n [2304] 309 - Cannot find name \'template\'.\n [2657] 0 - JSX expressions must have one parent element.\n [1382] 129 - Unexpected token. Did you mean `{\'>\'}` or `>`?\n [1003] 190 - Identifier expected.\n [1382] 206 - Unexpected token. Did you mean `{\'>\'}` or `>`?\n [17002] 230 - Expected corresponding JSX closing tag for \'template\'.\n [1128] 307 - Declaration or statement expected.\n [1109] 318 - Expression expected.', code: undefined }
packages/twoslash-vue/test/query.test.ts: packages/twoslash/src/validation.ts#L55
Error: ## Errors were thrown in the sample, but not included in an error tag These errors were not marked as being expected: 2322 2304 18004 2657 1382 1003 17002 1128 1109. Expected: // @errors: 2322 2304 18004 2657 1382 1003 17002 1128 1109 Compiler Errors: index.tsx [2322] 8 - Type '{ setup: true; lang: string; }' is not assignable to type 'ScriptHTMLAttributes & ReservedProps'. Property 'setup' does not exist on type 'ScriptHTMLAttributes & ReservedProps'. [2304] 34 - Cannot find name 'ref'. [2304] 39 - Cannot find name 'computed'. [18004] 220 - No value exists in scope for the shorthand property 'count'. Either declare one or provide an initializer. [18004] 272 - No value exists in scope for the shorthand property 'count'. Either declare one or provide an initializer. [2304] 309 - Cannot find name 'template'. [2657] 0 - JSX expressions must have one parent element. [1382] 129 - Unexpected token. Did you mean `{'>'}` or `>`? [1003] 190 - Identifier expected. [1382] 206 - Unexpected token. Did you mean `{'>'}` or `>`? [17002] 230 - Expected corresponding JSX closing tag for 'template'. [1128] 307 - Declaration or statement expected. [1109] 318 - Expression expected. ❯ Module.validateCodeForErrors packages/twoslash/src/validation.ts:55:20 ❯ twoslasher2 packages/twoslash/src/core.ts:400:7 ❯ twoslasher packages/twoslash-vue/src/index.ts:160:20 ❯ packages/twoslash-vue/test/query.test.ts:9:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { title: 'Errors were thrown in the sample, but not included in an error tag', description: 'These errors were not marked as being expected: 2322 2304 18004 2657 1382 1003 17002 1128 1109. \nExpected: // @errors: 2322 2304 18004 2657 1382 1003 17002 1128 1109', recommendation: 'Compiler Errors:\n\nindex.tsx\n [2322] 8 - Type \'{ setup: true; lang: string; }\' is not assignable to type \'ScriptHTMLAttributes & ReservedProps\'.\n Property \'setup\' does not exist on type \'ScriptHTMLAttributes & ReservedProps\'.\n [2304] 34 - Cannot find name \'ref\'.\n [2304] 39 - Cannot find name \'computed\'.\n [18004] 220 - No value exists in scope for the shorthand property \'count\'. Either declare one or provide an initializer.\n [18004] 272 - No value exists in scope for the shorthand property \'count\'. Either declare one or provide an initializer.\n [2304] 309 - Cannot find name \'template\'.\n [2657] 0 - JSX expressions must have one parent element.\n [1382] 129 - Unexpected token. Did you mean `{\'>\'}` or `>`?\n [1003] 190 - Identifier expected.\n [1382] 206 - Unexpected token. Did you mean `{\'>\'}` or `>`?\n [17002] 230 - Expected corresponding JSX closing tag for \'template\'.\n [1128] 307 - Declaration or statement expected.\n [1109] 318 - Expression expected.', code: undefined }
packages/twoslash-vue/test/shikiji.test.ts > highlight vue: packages/twoslash/src/validation.ts#L55
Error: ## Errors were thrown in the sample, but not included in an error tag These errors were not marked as being expected: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128. Expected: // @errors: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128 Compiler Errors: index.tsx [2322] 8 - Type '{ setup: true; lang: string; }' is not assignable to type 'ScriptHTMLAttributes & ReservedProps'. Property 'setup' does not exist on type 'ScriptHTMLAttributes & ReservedProps'. [2304] 34 - Cannot find name 'ref'. [2304] 39 - Cannot find name 'computed'. [2304] 252 - Cannot find name 'msg'. [2304] 294 - Cannot find name 'greet'. [2532] 322 - Object is possibly 'undefined'. [18004] 396 - No value exists in scope for the shorthand property 'msg'. Either declare one or provide an initializer. [18004] 416 - No value exists in scope for the shorthand property 'count'. Either declare one or provide an initializer. [2304] 452 - Cannot find name 'template'. [2657] 0 - JSX expressions must have one parent element. [1382] 134 - Unexpected token. Did you mean `{'>'}` or `>`? [1005] 206 - '}' expected. [1109] 237 - Expression expected. [1005] 255 - '}' expected. [1381] 270 - Unexpected token. Did you mean `{'}'}` or `}`? [1381] 274 - Unexpected token. Did you mean `{'}'}` or `}`? [1005] 302 - '}' expected. [1381] 340 - Unexpected token. Did you mean `{'}'}` or `}`? [1381] 342 - Unexpected token. Did you mean `{'}'}` or `}`? [1003] 376 - Identifier expected. [1382] 392 - Unexpected token. Did you mean `{'>'}` or `>`? [17002] 426 - Expected corresponding JSX closing tag for 'template'. [1128] 450 - Declaration or statement expected. [1109] 461 - Expression expected. ❯ Module.validateCodeForErrors packages/twoslash/src/validation.ts:55:20 ❯ twoslasher2 packages/twoslash/src/core.ts:400:7 ❯ twoslasher packages/twoslash-vue/src/index.ts:160:20 ❯ Object.preprocess node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/twoslash/dist/core.mjs:1122:30 ❯ codeToHast node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/core/dist/index.mjs:1126:41 ❯ codeToHtml node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/core/dist/index.mjs:4687:25 ❯ Object.codeToHtml node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/core/dist/index.mjs:5615:40 ❯ Module.codeToHtml node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/core/dist/index.mjs:5737:26 ❯ packages/twoslash-vue/test/shikiji.test.ts:19:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { title: 'Errors were thrown in the sample, but not included in an error tag', description: 'These errors were not marked as being expected: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128. \nExpected: // @errors: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128', recommendation: 'Compiler Errors:\n\nindex.tsx\n [2322] 8 - Type \'{ setup: true; lang: string; }\' is not assignable to type \'ScriptHTMLAttributes & ReservedProps\'.\n Property \'setup\' does not exist on type \'ScriptHTMLAttributes & ReservedProps\'.\n [2304] 34 - Cannot find name \'ref\'.\n [2304] 39 - Cannot find name \'computed\'.\n [2304] 252 - Cannot find name \'msg\'.\n [2304] 294 - Cannot find name \'greet\'.\n [2532] 322 - Object is possibly \'undefined\'.\n [18004] 396 - No value exists in scope for the shorthand property \'msg\'. Either declare one or provide an initializer.\n [18004] 416 - No value exists in scope for the shorthand property \'count\'. Either declare one or provide an initializer.\n [2304] 452 - Cannot find name \'template\'.\n [2657] 0 - JSX expressions must have one parent element.\n [1382] 134 - Unexpected token. Did you mean `{\'>\'}` or `>`?\n [1005] 206 - \'}\' expected.\n [1109] 237 - Expression expected.\n [1005] 255 - \'}\' expected.\n [1381] 270 - Unexpected token. Did you mean `{\'}\'}` or `}`?\n [1381] 274 - Unexpected token. Did you mean `{\'}\'}` or `}`?\n [1005] 302 - \'}\' expected.\n [1381] 34
packages/twoslash-vue/test/shikiji.test.ts > highlight raw: packages/twoslash/src/validation.ts#L55
Error: ## Errors were thrown in the sample, but not included in an error tag These errors were not marked as being expected: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128. Expected: // @errors: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128 Compiler Errors: index.tsx [2322] 8 - Type '{ setup: true; lang: string; }' is not assignable to type 'ScriptHTMLAttributes & ReservedProps'. Property 'setup' does not exist on type 'ScriptHTMLAttributes & ReservedProps'. [2304] 34 - Cannot find name 'ref'. [2304] 39 - Cannot find name 'computed'. [2304] 252 - Cannot find name 'msg'. [2304] 294 - Cannot find name 'greet'. [2532] 322 - Object is possibly 'undefined'. [18004] 396 - No value exists in scope for the shorthand property 'msg'. Either declare one or provide an initializer. [18004] 416 - No value exists in scope for the shorthand property 'count'. Either declare one or provide an initializer. [2304] 452 - Cannot find name 'template'. [2657] 0 - JSX expressions must have one parent element. [1382] 134 - Unexpected token. Did you mean `{'>'}` or `>`? [1005] 206 - '}' expected. [1109] 237 - Expression expected. [1005] 255 - '}' expected. [1381] 270 - Unexpected token. Did you mean `{'}'}` or `}`? [1381] 274 - Unexpected token. Did you mean `{'}'}` or `}`? [1005] 302 - '}' expected. [1381] 340 - Unexpected token. Did you mean `{'}'}` or `}`? [1381] 342 - Unexpected token. Did you mean `{'}'}` or `}`? [1003] 376 - Identifier expected. [1382] 392 - Unexpected token. Did you mean `{'>'}` or `>`? [17002] 426 - Expected corresponding JSX closing tag for 'template'. [1128] 450 - Declaration or statement expected. [1109] 461 - Expression expected. ❯ Module.validateCodeForErrors packages/twoslash/src/validation.ts:55:20 ❯ twoslasher2 packages/twoslash/src/core.ts:400:7 ❯ twoslasher packages/twoslash-vue/src/index.ts:160:20 ❯ Object.preprocess node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/twoslash/dist/core.mjs:1122:30 ❯ codeToHast node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/core/dist/index.mjs:1126:41 ❯ codeToHtml node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/core/dist/index.mjs:4687:25 ❯ Object.codeToHtml node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/core/dist/index.mjs:5615:40 ❯ Module.codeToHtml node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/core/dist/index.mjs:5737:26 ❯ packages/twoslash-vue/test/shikiji.test.ts:41:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { title: 'Errors were thrown in the sample, but not included in an error tag', description: 'These errors were not marked as being expected: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128. \nExpected: // @errors: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128', recommendation: 'Compiler Errors:\n\nindex.tsx\n [2322] 8 - Type \'{ setup: true; lang: string; }\' is not assignable to type \'ScriptHTMLAttributes & ReservedProps\'.\n Property \'setup\' does not exist on type \'ScriptHTMLAttributes & ReservedProps\'.\n [2304] 34 - Cannot find name \'ref\'.\n [2304] 39 - Cannot find name \'computed\'.\n [2304] 252 - Cannot find name \'msg\'.\n [2304] 294 - Cannot find name \'greet\'.\n [2532] 322 - Object is possibly \'undefined\'.\n [18004] 396 - No value exists in scope for the shorthand property \'msg\'. Either declare one or provide an initializer.\n [18004] 416 - No value exists in scope for the shorthand property \'count\'. Either declare one or provide an initializer.\n [2304] 452 - Cannot find name \'template\'.\n [2657] 0 - JSX expressions must have one parent element.\n [1382] 134 - Unexpected token. Did you mean `{\'>\'}` or `>`?\n [1005] 206 - \'}\' expected.\n [1109] 237 - Expression expected.\n [1005] 255 - \'}\' expected.\n [1381] 270 - Unexpected token. Did you mean `{\'}\'}` or `}`?\n [1381] 274 - Unexpected token. Did you mean `{\'}\'}` or `}`?\n [1005] 302 - \'}\' expected.\n [1381] 34
test (lts/*, ubuntu-latest)
Process completed with exit code 1.
packages/twoslash-vue/test/fixtures.test.ts > ./fixtures/completion.vue: packages/twoslash/src/core.ts#L286
Error: ## Invalid completion query The request on line 19 for completions via ^| is in a removal range. This is likely that the positioning is off. ❯ twoslasher2 packages/twoslash/src/core.ts:286:17 ❯ twoslasher packages/twoslash-vue/src/index.ts:160:20 ❯ packages/twoslash-vue/test/fixtures.test.ts:36:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { title: 'Invalid completion query', description: 'The request on line 19 for completions via ^| is in a removal range.', recommendation: 'This is likely that the positioning is off.', code: undefined }
packages/twoslash-vue/test/fixtures.test.ts > ./fixtures/cut-around-vue.vue: packages/twoslash/src/validation.ts#L55
Error: ## Errors were thrown in the sample, but not included in an error tag These errors were not marked as being expected: 2304 2657 1109 17008 1005 1381. Expected: // @errors: 2304 2657 1109 17008 1005 1381 Compiler Errors: index.tsx [2304] 124 - Cannot find name 'hi'. [2304] 177 - Cannot find name 'Foo'. [2304] 184 - Cannot find name 'bar'. [2304] 211 - Cannot find name 'hi'. [2657] 0 - JSX expressions must have one parent element. [1109] 162 - Expression expected. [17008] 177 - JSX element 'Foo' has no corresponding closing tag. [1005] 187 - '}' expected. [1381] 197 - Unexpected token. Did you mean `{'}'}` or `}`? [1381] 216 - Unexpected token. Did you mean `{'}'}` or `}`? ❯ Module.validateCodeForErrors packages/twoslash/src/validation.ts:55:20 ❯ twoslasher2 packages/twoslash/src/core.ts:400:7 ❯ twoslasher packages/twoslash-vue/src/index.ts:160:20 ❯ packages/twoslash-vue/test/fixtures.test.ts:36:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { title: 'Errors were thrown in the sample, but not included in an error tag', description: 'These errors were not marked as being expected: 2304 2657 1109 17008 1005 1381. \nExpected: // @errors: 2304 2657 1109 17008 1005 1381', recommendation: 'Compiler Errors:\n\nindex.tsx\n [2304] 124 - Cannot find name \'hi\'.\n [2304] 177 - Cannot find name \'Foo\'.\n [2304] 184 - Cannot find name \'bar\'.\n [2304] 211 - Cannot find name \'hi\'.\n [2657] 0 - JSX expressions must have one parent element.\n [1109] 162 - Expression expected.\n [17008] 177 - JSX element \'Foo\' has no corresponding closing tag.\n [1005] 187 - \'}\' expected.\n [1381] 197 - Unexpected token. Did you mean `{\'}\'}` or `}`?\n [1381] 216 - Unexpected token. Did you mean `{\'}\'}` or `}`?', code: undefined }
packages/twoslash-vue/test/fixtures.test.ts > ./fixtures/cut-in-vue.vue: packages/twoslash/src/validation.ts#L55
Error: ## Errors were thrown in the sample, but not included in an error tag These errors were not marked as being expected: 2322 2304 18004 2657 1005. Expected: // @errors: 2322 2304 18004 2657 1005 Compiler Errors: index.tsx [2322] 8 - Type '{ setup: true; lang: string; }' is not assignable to type 'ScriptHTMLAttributes & ReservedProps'. Property 'setup' does not exist on type 'ScriptHTMLAttributes & ReservedProps'. [2304] 127 - Cannot find name 'hi'. [18004] 330 - No value exists in scope for the shorthand property 'hi'. Either declare one or provide an initializer. [2657] 0 - JSX expressions must have one parent element. [1005] 332 - ',' expected. ❯ Module.validateCodeForErrors packages/twoslash/src/validation.ts:55:20 ❯ twoslasher2 packages/twoslash/src/core.ts:400:7 ❯ twoslasher packages/twoslash-vue/src/index.ts:160:20 ❯ packages/twoslash-vue/test/fixtures.test.ts:36:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { title: 'Errors were thrown in the sample, but not included in an error tag', description: 'These errors were not marked as being expected: 2322 2304 18004 2657 1005. \nExpected: // @errors: 2322 2304 18004 2657 1005', recommendation: 'Compiler Errors:\n\nindex.tsx\n [2322] 8 - Type \'{ setup: true; lang: string; }\' is not assignable to type \'ScriptHTMLAttributes & ReservedProps\'.\n Property \'setup\' does not exist on type \'ScriptHTMLAttributes & ReservedProps\'.\n [2304] 127 - Cannot find name \'hi\'.\n [18004] 330 - No value exists in scope for the shorthand property \'hi\'. Either declare one or provide an initializer.\n [2657] 0 - JSX expressions must have one parent element.\n [1005] 332 - \',\' expected.', code: undefined }
packages/twoslash-vue/test/fixtures.test.ts > ./fixtures/example.vue: packages/twoslash/src/validation.ts#L55
Error: ## Errors were thrown in the sample, but not included in an error tag These errors were not marked as being expected: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128. Expected: // @errors: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128 Compiler Errors: index.tsx [2322] 8 - Type '{ setup: true; lang: string; }' is not assignable to type 'ScriptHTMLAttributes & ReservedProps'. Property 'setup' does not exist on type 'ScriptHTMLAttributes & ReservedProps'. [2304] 34 - Cannot find name 'ref'. [2304] 39 - Cannot find name 'computed'. [2304] 252 - Cannot find name 'msg'. [2304] 294 - Cannot find name 'greet'. [2532] 322 - Object is possibly 'undefined'. [18004] 396 - No value exists in scope for the shorthand property 'msg'. Either declare one or provide an initializer. [18004] 416 - No value exists in scope for the shorthand property 'count'. Either declare one or provide an initializer. [2304] 452 - Cannot find name 'template'. [2657] 0 - JSX expressions must have one parent element. [1382] 134 - Unexpected token. Did you mean `{'>'}` or `>`? [1005] 206 - '}' expected. [1109] 237 - Expression expected. [1005] 255 - '}' expected. [1381] 270 - Unexpected token. Did you mean `{'}'}` or `}`? [1381] 274 - Unexpected token. Did you mean `{'}'}` or `}`? [1005] 302 - '}' expected. [1381] 340 - Unexpected token. Did you mean `{'}'}` or `}`? [1381] 342 - Unexpected token. Did you mean `{'}'}` or `}`? [1003] 376 - Identifier expected. [1382] 392 - Unexpected token. Did you mean `{'>'}` or `>`? [17002] 426 - Expected corresponding JSX closing tag for 'template'. [1128] 450 - Declaration or statement expected. [1109] 461 - Expression expected. ❯ Module.validateCodeForErrors packages/twoslash/src/validation.ts:55:20 ❯ twoslasher2 packages/twoslash/src/core.ts:400:7 ❯ twoslasher packages/twoslash-vue/src/index.ts:160:20 ❯ packages/twoslash-vue/test/fixtures.test.ts:36:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { title: 'Errors were thrown in the sample, but not included in an error tag', description: 'These errors were not marked as being expected: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128. \nExpected: // @errors: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128', recommendation: 'Compiler Errors:\n\nindex.tsx\n [2322] 8 - Type \'{ setup: true; lang: string; }\' is not assignable to type \'ScriptHTMLAttributes & ReservedProps\'.\n Property \'setup\' does not exist on type \'ScriptHTMLAttributes & ReservedProps\'.\n [2304] 34 - Cannot find name \'ref\'.\n [2304] 39 - Cannot find name \'computed\'.\n [2304] 252 - Cannot find name \'msg\'.\n [2304] 294 - Cannot find name \'greet\'.\n [2532] 322 - Object is possibly \'undefined\'.\n [18004] 396 - No value exists in scope for the shorthand property \'msg\'. Either declare one or provide an initializer.\n [18004] 416 - No value exists in scope for the shorthand property \'count\'. Either declare one or provide an initializer.\n [2304] 452 - Cannot find name \'template\'.\n [2657] 0 - JSX expressions must have one parent element.\n [1382] 134 - Unexpected token. Did you mean `{\'>\'}` or `>`?\n [1005] 206 - \'}\' expected.\n [1109] 237 - Expression expected.\n [1005] 255 - \'}\' expected.\n [1381] 270 - Unexpected token. Did you mean `{\'}\'}` or `}`?\n [1381] 274 - Unexpected token. Did you mean `{\'}\'}` or `}`?\n [1005] 302 - \'}\' expected.\n [1381] 340 - Unexpected token. Did you mean `{\'}\'}` or `}`?\n [1381] 342 - Unexpected token. Did you mean `{\'}\'}` or `}`?\n [1003] 376 - Identifier expected.\n [1382] 392 - Unexpected token. Did you mean `{\'>\'}` or `>`?\n [17002] 426 - Expected corresponding JSX closing tag for \'template\'.\n [1128] 450 - Declaration or statement expected.\n [1109] 461 - Expression expected.', code: undefined }
packages/twoslash-vue/test/fixtures.test.ts > ./fixtures/query-basic.vue: packages/twoslash/src/validation.ts#L55
Error: ## Errors were thrown in the sample, but not included in an error tag These errors were not marked as being expected: 2322 2304 18004 2657 1382 1003 17002 1128 1109. Expected: // @errors: 2322 2304 18004 2657 1382 1003 17002 1128 1109 Compiler Errors: index.tsx [2322] 8 - Type '{ setup: true; lang: string; }' is not assignable to type 'ScriptHTMLAttributes & ReservedProps'. Property 'setup' does not exist on type 'ScriptHTMLAttributes & ReservedProps'. [2304] 34 - Cannot find name 'ref'. [2304] 39 - Cannot find name 'computed'. [18004] 220 - No value exists in scope for the shorthand property 'count'. Either declare one or provide an initializer. [18004] 272 - No value exists in scope for the shorthand property 'count'. Either declare one or provide an initializer. [2304] 309 - Cannot find name 'template'. [2657] 0 - JSX expressions must have one parent element. [1382] 129 - Unexpected token. Did you mean `{'>'}` or `>`? [1003] 190 - Identifier expected. [1382] 206 - Unexpected token. Did you mean `{'>'}` or `>`? [17002] 230 - Expected corresponding JSX closing tag for 'template'. [1128] 307 - Declaration or statement expected. [1109] 318 - Expression expected. ❯ Module.validateCodeForErrors packages/twoslash/src/validation.ts:55:20 ❯ twoslasher2 packages/twoslash/src/core.ts:400:7 ❯ twoslasher packages/twoslash-vue/src/index.ts:160:20 ❯ packages/twoslash-vue/test/fixtures.test.ts:36:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { title: 'Errors were thrown in the sample, but not included in an error tag', description: 'These errors were not marked as being expected: 2322 2304 18004 2657 1382 1003 17002 1128 1109. \nExpected: // @errors: 2322 2304 18004 2657 1382 1003 17002 1128 1109', recommendation: 'Compiler Errors:\n\nindex.tsx\n [2322] 8 - Type \'{ setup: true; lang: string; }\' is not assignable to type \'ScriptHTMLAttributes & ReservedProps\'.\n Property \'setup\' does not exist on type \'ScriptHTMLAttributes & ReservedProps\'.\n [2304] 34 - Cannot find name \'ref\'.\n [2304] 39 - Cannot find name \'computed\'.\n [18004] 220 - No value exists in scope for the shorthand property \'count\'. Either declare one or provide an initializer.\n [18004] 272 - No value exists in scope for the shorthand property \'count\'. Either declare one or provide an initializer.\n [2304] 309 - Cannot find name \'template\'.\n [2657] 0 - JSX expressions must have one parent element.\n [1382] 129 - Unexpected token. Did you mean `{\'>\'}` or `>`?\n [1003] 190 - Identifier expected.\n [1382] 206 - Unexpected token. Did you mean `{\'>\'}` or `>`?\n [17002] 230 - Expected corresponding JSX closing tag for \'template\'.\n [1128] 307 - Declaration or statement expected.\n [1109] 318 - Expression expected.', code: undefined }
packages/twoslash-vue/test/query.test.ts: packages/twoslash/src/validation.ts#L55
Error: ## Errors were thrown in the sample, but not included in an error tag These errors were not marked as being expected: 2322 2304 18004 2657 1382 1003 17002 1128 1109. Expected: // @errors: 2322 2304 18004 2657 1382 1003 17002 1128 1109 Compiler Errors: index.tsx [2322] 8 - Type '{ setup: true; lang: string; }' is not assignable to type 'ScriptHTMLAttributes & ReservedProps'. Property 'setup' does not exist on type 'ScriptHTMLAttributes & ReservedProps'. [2304] 34 - Cannot find name 'ref'. [2304] 39 - Cannot find name 'computed'. [18004] 220 - No value exists in scope for the shorthand property 'count'. Either declare one or provide an initializer. [18004] 272 - No value exists in scope for the shorthand property 'count'. Either declare one or provide an initializer. [2304] 309 - Cannot find name 'template'. [2657] 0 - JSX expressions must have one parent element. [1382] 129 - Unexpected token. Did you mean `{'>'}` or `>`? [1003] 190 - Identifier expected. [1382] 206 - Unexpected token. Did you mean `{'>'}` or `>`? [17002] 230 - Expected corresponding JSX closing tag for 'template'. [1128] 307 - Declaration or statement expected. [1109] 318 - Expression expected. ❯ Module.validateCodeForErrors packages/twoslash/src/validation.ts:55:20 ❯ twoslasher2 packages/twoslash/src/core.ts:400:7 ❯ twoslasher packages/twoslash-vue/src/index.ts:160:20 ❯ packages/twoslash-vue/test/query.test.ts:9:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { title: 'Errors were thrown in the sample, but not included in an error tag', description: 'These errors were not marked as being expected: 2322 2304 18004 2657 1382 1003 17002 1128 1109. \nExpected: // @errors: 2322 2304 18004 2657 1382 1003 17002 1128 1109', recommendation: 'Compiler Errors:\n\nindex.tsx\n [2322] 8 - Type \'{ setup: true; lang: string; }\' is not assignable to type \'ScriptHTMLAttributes & ReservedProps\'.\n Property \'setup\' does not exist on type \'ScriptHTMLAttributes & ReservedProps\'.\n [2304] 34 - Cannot find name \'ref\'.\n [2304] 39 - Cannot find name \'computed\'.\n [18004] 220 - No value exists in scope for the shorthand property \'count\'. Either declare one or provide an initializer.\n [18004] 272 - No value exists in scope for the shorthand property \'count\'. Either declare one or provide an initializer.\n [2304] 309 - Cannot find name \'template\'.\n [2657] 0 - JSX expressions must have one parent element.\n [1382] 129 - Unexpected token. Did you mean `{\'>\'}` or `>`?\n [1003] 190 - Identifier expected.\n [1382] 206 - Unexpected token. Did you mean `{\'>\'}` or `>`?\n [17002] 230 - Expected corresponding JSX closing tag for \'template\'.\n [1128] 307 - Declaration or statement expected.\n [1109] 318 - Expression expected.', code: undefined }
packages/twoslash-vue/test/shikiji.test.ts > highlight vue: packages/twoslash/src/validation.ts#L55
Error: ## Errors were thrown in the sample, but not included in an error tag These errors were not marked as being expected: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128. Expected: // @errors: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128 Compiler Errors: index.tsx [2322] 8 - Type '{ setup: true; lang: string; }' is not assignable to type 'ScriptHTMLAttributes & ReservedProps'. Property 'setup' does not exist on type 'ScriptHTMLAttributes & ReservedProps'. [2304] 34 - Cannot find name 'ref'. [2304] 39 - Cannot find name 'computed'. [2304] 252 - Cannot find name 'msg'. [2304] 294 - Cannot find name 'greet'. [2532] 322 - Object is possibly 'undefined'. [18004] 396 - No value exists in scope for the shorthand property 'msg'. Either declare one or provide an initializer. [18004] 416 - No value exists in scope for the shorthand property 'count'. Either declare one or provide an initializer. [2304] 452 - Cannot find name 'template'. [2657] 0 - JSX expressions must have one parent element. [1382] 134 - Unexpected token. Did you mean `{'>'}` or `>`? [1005] 206 - '}' expected. [1109] 237 - Expression expected. [1005] 255 - '}' expected. [1381] 270 - Unexpected token. Did you mean `{'}'}` or `}`? [1381] 274 - Unexpected token. Did you mean `{'}'}` or `}`? [1005] 302 - '}' expected. [1381] 340 - Unexpected token. Did you mean `{'}'}` or `}`? [1381] 342 - Unexpected token. Did you mean `{'}'}` or `}`? [1003] 376 - Identifier expected. [1382] 392 - Unexpected token. Did you mean `{'>'}` or `>`? [17002] 426 - Expected corresponding JSX closing tag for 'template'. [1128] 450 - Declaration or statement expected. [1109] 461 - Expression expected. ❯ Module.validateCodeForErrors packages/twoslash/src/validation.ts:55:20 ❯ twoslasher2 packages/twoslash/src/core.ts:400:7 ❯ twoslasher packages/twoslash-vue/src/index.ts:160:20 ❯ Object.preprocess node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/twoslash/dist/core.mjs:1122:30 ❯ codeToHast node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/core/dist/index.mjs:1126:41 ❯ codeToHtml node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/core/dist/index.mjs:4687:25 ❯ Object.codeToHtml node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/core/dist/index.mjs:5615:40 ❯ Module.codeToHtml node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/core/dist/index.mjs:5737:26 ❯ packages/twoslash-vue/test/shikiji.test.ts:19:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { title: 'Errors were thrown in the sample, but not included in an error tag', description: 'These errors were not marked as being expected: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128. \nExpected: // @errors: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128', recommendation: 'Compiler Errors:\n\nindex.tsx\n [2322] 8 - Type \'{ setup: true; lang: string; }\' is not assignable to type \'ScriptHTMLAttributes & ReservedProps\'.\n Property \'setup\' does not exist on type \'ScriptHTMLAttributes & ReservedProps\'.\n [2304] 34 - Cannot find name \'ref\'.\n [2304] 39 - Cannot find name \'computed\'.\n [2304] 252 - Cannot find name \'msg\'.\n [2304] 294 - Cannot find name \'greet\'.\n [2532] 322 - Object is possibly \'undefined\'.\n [18004] 396 - No value exists in scope for the shorthand property \'msg\'. Either declare one or provide an initializer.\n [18004] 416 - No value exists in scope for the shorthand property \'count\'. Either declare one or provide an initializer.\n [2304] 452 - Cannot find name \'template\'.\n [2657] 0 - JSX expressions must have one parent element.\n [1382] 134 - Unexpected token. Did you mean `{\'>\'}` or `>`?\n [1005] 206 - \'}\' expected.\n [1109] 237 - Expression expected.\n [1005] 255 - \'}\' expected.\n [1381] 270 - Unexpected token. Did you mean `{\'}\'}` or `}`?\n [1381] 274 - Unexpected token. Did you mean `{\'}\'}` or `}`?\n [1005] 302 - \'}\' expected.\n [1381] 34
packages/twoslash-vue/test/shikiji.test.ts > highlight raw: packages/twoslash/src/validation.ts#L55
Error: ## Errors were thrown in the sample, but not included in an error tag These errors were not marked as being expected: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128. Expected: // @errors: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128 Compiler Errors: index.tsx [2322] 8 - Type '{ setup: true; lang: string; }' is not assignable to type 'ScriptHTMLAttributes & ReservedProps'. Property 'setup' does not exist on type 'ScriptHTMLAttributes & ReservedProps'. [2304] 34 - Cannot find name 'ref'. [2304] 39 - Cannot find name 'computed'. [2304] 252 - Cannot find name 'msg'. [2304] 294 - Cannot find name 'greet'. [2532] 322 - Object is possibly 'undefined'. [18004] 396 - No value exists in scope for the shorthand property 'msg'. Either declare one or provide an initializer. [18004] 416 - No value exists in scope for the shorthand property 'count'. Either declare one or provide an initializer. [2304] 452 - Cannot find name 'template'. [2657] 0 - JSX expressions must have one parent element. [1382] 134 - Unexpected token. Did you mean `{'>'}` or `>`? [1005] 206 - '}' expected. [1109] 237 - Expression expected. [1005] 255 - '}' expected. [1381] 270 - Unexpected token. Did you mean `{'}'}` or `}`? [1381] 274 - Unexpected token. Did you mean `{'}'}` or `}`? [1005] 302 - '}' expected. [1381] 340 - Unexpected token. Did you mean `{'}'}` or `}`? [1381] 342 - Unexpected token. Did you mean `{'}'}` or `}`? [1003] 376 - Identifier expected. [1382] 392 - Unexpected token. Did you mean `{'>'}` or `>`? [17002] 426 - Expected corresponding JSX closing tag for 'template'. [1128] 450 - Declaration or statement expected. [1109] 461 - Expression expected. ❯ Module.validateCodeForErrors packages/twoslash/src/validation.ts:55:20 ❯ twoslasher2 packages/twoslash/src/core.ts:400:7 ❯ twoslasher packages/twoslash-vue/src/index.ts:160:20 ❯ Object.preprocess node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/twoslash/dist/core.mjs:1122:30 ❯ codeToHast node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/core/dist/index.mjs:1126:41 ❯ codeToHtml node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/core/dist/index.mjs:4687:25 ❯ Object.codeToHtml node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/core/dist/index.mjs:5615:40 ❯ Module.codeToHtml node_modules/.pnpm/@shikijs[email protected]/node_modules/@shikijs/core/dist/index.mjs:5737:26 ❯ packages/twoslash-vue/test/shikiji.test.ts:41:18 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { title: 'Errors were thrown in the sample, but not included in an error tag', description: 'These errors were not marked as being expected: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128. \nExpected: // @errors: 2322 2304 2532 18004 2657 1382 1005 1109 1381 1003 17002 1128', recommendation: 'Compiler Errors:\n\nindex.tsx\n [2322] 8 - Type \'{ setup: true; lang: string; }\' is not assignable to type \'ScriptHTMLAttributes & ReservedProps\'.\n Property \'setup\' does not exist on type \'ScriptHTMLAttributes & ReservedProps\'.\n [2304] 34 - Cannot find name \'ref\'.\n [2304] 39 - Cannot find name \'computed\'.\n [2304] 252 - Cannot find name \'msg\'.\n [2304] 294 - Cannot find name \'greet\'.\n [2532] 322 - Object is possibly \'undefined\'.\n [18004] 396 - No value exists in scope for the shorthand property \'msg\'. Either declare one or provide an initializer.\n [18004] 416 - No value exists in scope for the shorthand property \'count\'. Either declare one or provide an initializer.\n [2304] 452 - Cannot find name \'template\'.\n [2657] 0 - JSX expressions must have one parent element.\n [1382] 134 - Unexpected token. Did you mean `{\'>\'}` or `>`?\n [1005] 206 - \'}\' expected.\n [1109] 237 - Expression expected.\n [1005] 255 - \'}\' expected.\n [1381] 270 - Unexpected token. Did you mean `{\'}\'}` or `}`?\n [1381] 274 - Unexpected token. Did you mean `{\'}\'}` or `}`?\n [1005] 302 - \'}\' expected.\n [1381] 34
test (lts/*, windows-latest)
Process completed with exit code 1.
lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
typecheck
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
test (lts/*, macos-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
test (lts/*, ubuntu-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
test (lts/*, windows-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/