Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not build after pulling the master #2

Open
pfolegmalkov opened this issue Nov 5, 2022 · 0 comments
Open

Can not build after pulling the master #2

pfolegmalkov opened this issue Nov 5, 2022 · 0 comments

Comments

@pfolegmalkov
Copy link

src/client/systems/spawnEffects.ts:3:10 - error TS2305: Module '"shared/components"' has no exported member 'Effect'.

3 import { Effect } from "shared/components";
           ~~~~~~

src/client/systems/spawnEffects.ts:4:40 - error TS2307: Cannot find module 'shared/effects/replicate_fx_on_client' or its corresponding type declarations.

4 import { replicate_fx_on_client } from "shared/effects/replicate_fx_on_client";
                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/client/systems/spawnEffects.ts:13:26 - error TS2571: Object is of type 'unknown'.

13   const predictionGUID = effect.predictionGUID;
                            ~~~~~~

src/client/systems/spawnEffects.ts:16:18 - error TS2345: Argument of type 'Entity<[unknown]>' is not assignable to parameter of type 'AnyEntity'.
  Type 'Entity<[unknown]>' is not assignable to type '{ readonly __nominal_entity: ComponentBundle; }'.
    Types of property '__nominal_entity' are incompatible.
      Type '[unknown]' is not assignable to type 'ComponentBundle'.
        Type 'unknown' is not assignable to type 'AnyComponent'.
          Type 'unknown' is not assignable to type 'object'.

16    world.despawn(id);
                    ~~

src/client/systems/spawnEffects.ts:21:18 - error TS2345: Argument of type 'Entity<[unknown]>' is not assignable to parameter of type 'AnyEntity'.

21    world.despawn(id);
                    ~~

src/client/systems/spawnEffects.ts:29:7 - error TS2571: Object is of type 'unknown'.

29   if (effect.source === Players.LocalPlayer) {
         ~~~~~~

src/server/systems/replication.ts:4:18 - error TS2305: Module '"shared/components"' has no exported member 'Effect'.

4 import { Client, Effect, Renderable } from "shared/components";
                   ~~~~~~

src/server/emitEffects.ts:3:10 - error TS2305: Module '"shared/components"' has no exported member 'Effect'.

3 import { Effect } from "shared/components";
           ~~~~~~

src/server/systems/damageHurts.ts:2:23 - error TS2305: Module '"shared/components"' has no exported member 'Effect'.

2 import { CombatStats, Effect, Renderable } from "shared/components";
                        ~~~~~~

src/server/systems/damageHurts.ts:7:11 - error TS2339: Property 'target' does not exist on type 'unknown'.

7   const { target, source, variant } = effect;
            ~~~~~~

src/server/systems/damageHurts.ts:7:19 - error TS2339: Property 'source' does not exist on type 'unknown'.

7   const { target, source, variant } = effect;
                    ~~~~~~

src/server/systems/damageHurts.ts:7:27 - error TS2339: Property 'variant' does not exist on type 'unknown'.

7   const { target, source, variant } = effect;
                            ~~~~~~~

src/server/systems/damageHurts.ts:27:17 - error TS2345: Argument of type 'Entity<[unknown]>' is not assignable to parameter of type 'AnyEntity'.

27   world.despawn(id);
                   ~~

src/server/tests/damageHurts.spec.ts:7:31 - error TS2305: Module '"shared/components"' has no exported member 'Effect'.

7 import { Client, CombatStats, Effect, Renderable } from "shared/components";
                                ~~~~~~

src/server/systems/powerOfFriendship.ts:15:6 - error TS2339: Property 'mapFiltered' does not exist on type 'Query<[Component<{ player: Player; lineSight: Vector3; document: { rewardsMultiplier: number; bonusMultiplier?: number | undefined; }; }>]>'.

15     .mapFiltered(({ player }) => player)
        ~~~~~~~~~~~

src/server/systems/powerOfFriendship.ts:15:21 - error TS7031: Binding element 'player' implicitly has an 'any' type.

15     .mapFiltered(({ player }) => player)
                       ~~~~~~

src/server/systems/powerOfFriendship.ts:22:40 - error TS7006: Parameter 'player' implicitly has an 'any' type.

22   const friends = players.mapFiltered((player) => {
                                          ~~~~~~

src/server/systems/zonesSpawnAgents.ts:21:13 - error TS2322: Type 'Entity<[Component<{ maxCapacity: number; population: number; }>]>' is not assignable to type 'Entity<[Component<{ maxCapacity: number; population: number; }>, Component<{ cf: CFrame; doNotReconcile?: boolean | undefined; }>, Component<{ size: Vector3; }>]>'.
  Type 'Entity<[Component<{ maxCapacity: number; population: number; }>]>' is not assignable to type '{ readonly __nominal_entity: [Component<{ maxCapacity: number; population: number; }>, Component<{ cf: CFrame; doNotReconcile?: boolean | undefined; }>, Component<{ size: Vector3; }>]; }'.
    Types of property '__nominal_entity' are incompatible.
      Type '[Component<{ maxCapacity: number; population: number; }>]' is not assignable to type '[Component<{ maxCapacity: number; population: number; }>, Component<{ cf: CFrame; doNotReconcile?: boolean | undefined; }>, Component<{ size: Vector3; }>]'.
        Source has 1 element(s) but target requires 3.

21     Agent({ residentOf: id }),
               ~~~~~~~~~~

error Command failed with exit code 1.

Seems some files are not committed to the repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant