You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i've got following errors
Could u give some additional information how setup build using tsc or tsgo ?
it is possible to compile it with clear tsc compiler ?
MS actually want to resolve typechecking gloabally, they actually rewriting it to golang beacause they finded is very slow )) lol ))
C:\DEV-GO\typescript-go\built\local>tsgo tsc -project ..\..\..\..\DEV-GO\vue3\tsconfig.json
../../../vue3/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/vitest/dist/chunks/vite.BCQa3xFG.d.ts(4,16): error TS2671: Cannot augment module 'vite' because it resolves to a non-module entity.
../../../vue3/packages/compiler-sfc/src/script/resolveType.ts(402,5): error TS2740: Type '{ type: "TSTypeAnnotation"; typeAnnotation: TSType; }' is missing the following properties from type 'TSTypeAnnotation': leadingComments, innerComments, trailingComments, start, and 2 more.
../../../vue3/packages/compiler-sfc/src/script/resolveType.ts(469,7): error TS2345: Argument of type '{ type: "Identifier"; name: string; }' is not assignable to parameter of type 'Expression'.
Type '{ type: "Identifier"; name: string; }' is missing the following properties from type 'Identifier': leadingComments, innerComments, trailingComments, start, and 5 more.
../../../vue3/packages/compiler-sfc/src/script/resolveType.ts(1291,19): error TS2322: Type '{ type: "Identifier"; name: string; }' is not assignable to type 'TSEntityName'.
Type '{ type: "Identifier"; name: string; }' is missing the following properties from type 'Identifier': leadingComments, innerComments, trailingComments, start, and 5 more.
../../../vue3/packages/compiler-sfc/src/script/resolveType.ts(1412,26): error TS2345: Argument of type '{ type: "ExportNamedDeclaration"; declaration: TSModuleDeclaration; exportKind: "type"; specifiers: never[]; }' is not assignable to parameter of type 'Statement'.
Type '{ type: "ExportNamedDeclaration"; declaration: TSModuleDeclaration; exportKind: "type"; specifiers: never[]; }' is missing the following properties from type 'ExportNamedDeclaration': leadingComments, innerComments, trailingComments, start, and 5 more.
../../../vue3/packages/compiler-sfc/src/script/resolveType.ts(1421,22): error TS2345: Argument of type '{ type: "ExportNamedDeclaration"; declaration: TSModuleDeclaration; exportKind: "type"; specifiers: never[]; }' is not assignable to parameter of type 'Statement'.
Type '{ type: "ExportNamedDeclaration"; declaration: TSModuleDeclaration; exportKind: "type"; specifiers: never[]; }' is missing the following properties from type 'ExportNamedDeclaration': leadingComments, innerComments, trailingComments, start, and 5 more.
../../../vue3/packages/compiler-sfc/src/script/resolveType.ts(1864,30): error TS2345: Argument of type '{ type: "TSNullKeyword"; }' is not assignable to parameter of type 'TSType'.
Type '{ type: "TSNullKeyword"; }' is missing the following properties from type 'TSNullKeyword': leadingComments, innerComments, trailingComments, start, and 2 more.
../../../vue3/packages/compiler-sfc/src/script/resolveType.ts(1873,7): error TS2322: Type '{ type: "TSBooleanKeyword" | "TSNumberKeyword" | "TSStringKeyword"; }' is not assignable to type 'TSType'.
Type '{ type: "TSBooleanKeyword" | "TSNumberKeyword" | "TSStringKeyword"; }' is not assignable to type 'TSBooleanKeyword | TSNumberKeyword | TSStringKeyword'.
Type '{ type: "TSBooleanKeyword" | "TSNumberKeyword" | "TSStringKeyword"; }' is missing the following properties from type 'TSStringKeyword': leadingComments, innerComments, trailingComments, start, and 2 more.
../../../vue3/packages/compiler-sfc/src/script/resolveType.ts(1885,9): error TS2322: Type '{ type: "Identifier"; name: "Array" | "Date" | "Function" | "Map" | "Object" | "Promise" | "Set" | "WeakMap" | "WeakSet"; }' is not assignable to type 'TSEntityName'.
Type '{ type: "Identifier"; name: "Array" | "Date" | "Function" | "Map" | "Object" | "Promise" | "Set" | "WeakMap" | "WeakSet"; }' is missing the following properties from type 'Identifier': leadingComments, innerComments, trailingComments, start, and 5 more.
../../../vue3/packages/compiler-sfc/src/script/resolveType.ts(1889,3): error TS2322: Type '{ type: "TSNullKeyword"; }' is not assignable to type 'TSType'.
Type '{ type: "TSNullKeyword"; }' is missing the following properties from type 'TSNullKeyword': leadingComments, innerComments, trailingComments, start, and 2 more.
../../../vue3/packages/compiler-sfc/src/style/cssVars.ts(130,14): error TS2322: Type '{ (opts: CssVarsPluginOptions | undefined): { postcssPlugin: string; Declaration: (decl: Declaration_) => void; }; postcss: boolean; }' is not assignable to type 'PluginCreator<CssVarsPluginOptions>'.
Types of property 'postcss' are incompatible.
Type 'boolean' is not assignable to type 'true'.
../../../vue3/packages/compiler-ssr/src/transforms/ssrVModel.ts(25,47): error TS2307: Cannot find module 'packages/compiler-core/src/transform' or its corresponding type declarations.
../../../vue3/packages/runtime-core/__tests__/components/Suspense.spec.ts(27,31): error TS2307: Cannot find module 'packages/runtime-core/src/componentSlots' or its corresponding type declarations.
../../../vue3/packages/vue-compat/src/index.ts(22,45): error TS2307: Cannot find module 'packages/runtime-core/src/component' or its corresponding type declarations.
../../../vue3/packages/vue/src/index.ts(22,45): error TS2307: Cannot find module 'packages/runtime-core/src/component' or its corresponding type declarations.
Found 15 errors in 7 files.
Errors Files
1 ../../../vue3/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/vitest/dist/chunks/vite.BCQa3xFG.d.ts:4
9 ../../../vue3/packages/compiler-sfc/src/script/resolveType.ts:402
1 ../../../vue3/packages/compiler-sfc/src/style/cssVars.ts:130
1 ../../../vue3/packages/compiler-ssr/src/transforms/ssrVModel.ts:25
1 ../../../vue3/packages/runtime-core/__tests__/components/Suspense.spec.ts:27
1 ../../../vue3/packages/vue-compat/src/index.ts:22
1 ../../../vue3/packages/vue/src/index.ts:22
Files: 704
Types: 270569
C:\DEV-GO\typescript-go\built\local>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hie gyus, ive tryed to build vue3 via tsgo compiler
microsoft/typescript-go#489 (reply in thread)
But i've got a issue to compile it.
i've got following errors
Could u give some additional information how setup build using tsc or tsgo ?
it is possible to compile it with clear tsc compiler ?
MS actually want to resolve typechecking gloabally, they actually rewriting it to golang beacause they finded is very slow )) lol ))
Beta Was this translation helpful? Give feedback.
All reactions