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
The presence of type twice in the import leads to a build error.
To Reproduce
Getting a build error while trying to build code for production
vue-cli-service build
⠙ Building for production...Starting type checking service...
Using 1 worker with 2048MB memory limit
⠋ Building for production...
ERROR Failed to compile with 2 errors 5:37:20 PM
error in /Users/shyamkumar/Projects/vue-project/node_modules/@bufbuild/connect/dist/types/router.d.ts
ERROR in /Users/shyamkumar/Projects/vue-project/node_modules/@bufbuild/connect/dist/types/router.d.ts(3,15):
3:15 ',' expected.
1 | import type { MethodInfo, ServiceType } from "@bufbuild/protobuf";
2 | import type { MethodImpl, ServiceImpl } from "./implementation.js";
> 3 | import { type UniversalHandler, type UniversalHandlerOptions } from "./protocol/universal-handler.js";
| ^
4 | /**
5 | * ConnectRouter is your single registration point for RPCs.
6 | *
error in /Users/shyamkumar/Projects/vue-project/node_modules/@bufbuild/connect/dist/types/router.d.ts
ERROR in /Users/shyamkumar/Projects/vue-project/node_modules/@bufbuild/connect/dist/types/router.d.ts(3,38):
3:38 ',' expected.
1 | import type { MethodInfo, ServiceType } from "@bufbuild/protobuf";
2 | import type { MethodImpl, ServiceImpl } from "./implementation.js";
> 3 | import { type UniversalHandler, type UniversalHandlerOptions } from "./protocol/universal-handler.js";
| ^
4 | /**
5 | * ConnectRouter is your single registration point for RPCs.
6 | *
The issue goes away if I change node_modules/@bufbuild/connect/dist/types/router.d.ts:3 to
import type { UniversalHandler, UniversalHandlerOptions } from "./protocol/universal-handler.js";
TypeScript 4.5 added support for type modifiers on import names. It looks like you are using a pretty old version of TypeScript. We do intend to support older versions though, and ought to fix this.
Vue build error
The presence of
type
twice in the import leads to a build error.To Reproduce
Getting a build error while trying to build code for production
The issue goes away if I change
node_modules/@bufbuild/connect/dist/types/router.d.ts:3
toEnvironment:
Bundling information
webpack@5.74.0
)compression-webpack-plugin@10.0.0
)The text was updated successfully, but these errors were encountered: