Effect CommunityEC
Effect Community3y ago
6 replies
Narley

Errors with `tsc --noEmit` related to effect

Hi folks.
I'm getting errors from tsc --noEmil related to effect.
I've install effect with: npm install effect
I'm importing modules this way: import { Function as Fn, Option as Op, String as Str } from 'effect'
I have skipLibCheck: true in tsconfig.json
Typescript 4.6.3
And when I run tsc --noEmit I get the following:
narley@brittes client (682-max-col-ellipsis)$ npm run check-ts-compilation
> @app/sr/client@0.0.1 check-ts-compilation
> tsc --noEmit
node_modules/@effect/data/Brand.d.ts:49:24 - error TS1139: Type parameter declaration expected.
49 export interface Brand<in out K extends string | symbol> {
node_modules/@effect/data/Brand.d.ts:49:31 - error TS1005: ';' expected.
49 export interface Brand<in out K extends string | symbol> {
node_modules/@effect/data/Brand.d.ts:49:33 - error TS1128: Declaration or statement expected.
49 export interface Brand<in out K extends string | symbol> {
node_modules/@effect/data/Brand.d.ts:51:29 - error TS1005: ',' expected.
51         readonly [k in K]: K;
node_modules/@effect/data/Brand.d.ts:52:6 - error TS1005: ',' expected.
52     };


Has anyone came across something similar?
Was this page helpful?