Skip to content

Instantly share code, notes, and snippets.

@beaucollins
Created October 26, 2019 00:45
Show Gist options
  • Save beaucollins/4d0578f628a3d4b050947d7f1e7d6f51 to your computer and use it in GitHub Desktop.
Save beaucollins/4d0578f628a3d4b050947d7f1e7d6f51 to your computer and use it in GitHub Desktop.
Error ----------------------------------------------------------------------- ../happy-tools/apps/core/src/apps.js:14:31
Cannot resolve module `core/src/app-host`.
14| import { switchAppHost } from 'core/src/app-host';
^^^^^^^^^^^^^^^^^^^
Error ------------------------------------------------ ../happy-tools/apps/core/src/components/apps-menu/index.jsx:15:18
Cannot resolve module `core/src/components/logo`.
15| import Logo from 'core/src/components/logo';
^^^^^^^^^^^^^^^^^^^^^^^^^^
Error ----------------------------------------------------------------- ../happy-tools/apps/core/src/suite/index.js:8:18
Cannot resolve module `core/src/components/logo`.
8| import Logo from 'core/src/components/logo';
^^^^^^^^^^^^^^^^^^^^^^^^^^
Error ---------------------------------------------------------------- ../happy-tools/apps/core/src/suite/index.js:10:10
Cannot import `suiteNode` because there is no `suiteNode` export in `core/src/app-node`. Did you mean
`import suiteNode from "..."`?
10| import { suiteNode } from 'core/src/app-node';
^^^^^^^^^
Error ---------------------------------------------------------------- ../happy-tools/apps/core/src/suite/index.js:12:29
Missing type annotation for `T`. `T` is a type parameter declared in function type [1] and was implicitly instantiated
at call of method `createContext` [2].
../happy-tools/apps/core/src/suite/index.js:12:29
v--------------------
12| export const SuiteContext = React.createContext({
13| openAppSwitcher() {
14| render(
15| <Launcher />,
16| suiteNode
17| );
18| }
19| });
-^ [2]
References:
/private/tmp/flow/flowlib_15dadfc6/react.js:236:40
v---
236| declare export function createContext<T>(
237| defaultValue: T,
238| calculateChangedBits: ?(a: T, b: T) => number,
239| ): React$Context<T>;
------------------^ [1]
Error -------------------------------------------------------------- ../happy-tools/apps/core/src/suite/launcher.js:8:18
Cannot resolve module `core/src/components/logo`.
8| import Logo from 'core/src/components/logo';
^^^^^^^^^^^^^^^^^^^^^^^^^^
Error ------------------------------------------------------------- ../happy-tools/apps/core/src/suite/launcher.js:14:14
Cannot resolve name `App`.
14| apps: Array<App>,
^^^
Error -------------------------------------------------------------- ../happy-tools/apps/core/src/suite/launcher.js:26:5
Cannot resolve name `React`.
26| <Logo />
^^^^^^^^
Error ---------------------------------- ../happy-tools/apps/schedule/src/components/block-graph/gridlines/index.js:81:6
Cannot use `highlight.className` [1] as a computed property. Computed properties may only be primitive literal values,
but this one may be either string [2] or string [3]. Can you add a literal type annotation to `highlight.className` [1]?
See https://flow.org/en/docs/types/literals/ for more information on literal types.
../happy-tools/apps/schedule/src/components/block-graph/gridlines/index.js:81:6
81| [highlight.className]: shouldHighlight,
^^^^^^^^^^^^^^^^^^^ [1]
References:
../happy-tools/apps/schedule/src/components/block-graph/gridlines/index.js:75:51
75| highlight = { every: -1, offset: 0, className: 'unused' };
^^^^^^^^ [2]
../happy-tools/apps/schedule/src/components/block-graph/gridlines/index.js:15:13
15| className: string,
^^^^^^ [3]
Error ------------------------------------------ ../happy-tools/apps/schedule/src/components/block-graph/index.js:536:25
Cannot assign object literal to `gesture.selection` because property `popover` is missing in object literal [1] but
exists in `Selection` [2].
../happy-tools/apps/schedule/src/components/block-graph/index.js:536:25
v
536| gesture.selection = {
537| ...gesture.selection,
538| items: modifications.updated.map(item => dataSource.identifyBlock(item)),
539| };
^ [1]
References:
../happy-tools/apps/schedule/src/gestures/index.js.flow:71:14
71| selection?: Selection,
^^^^^^^^^ [2]
Error -------------------------------- ../happy-tools/apps/schedule/src/containers/afk-request-form-dialog/index.js:75:3
Cannot use `AFK_DURATION_MULTIPLE_DAYS` [1] as a computed property. Computed properties may only be primitive literal
values, but `AfkDuration` [2] is a union. Can you add a literal type annotation to `AFK_DURATION_MULTIPLE_DAYS` [1]? See
https://flow.org/en/docs/types/literals/ for more information on literal types.
../happy-tools/apps/schedule/src/containers/afk-request-form-dialog/index.js:75:3
75| [AFK_DURATION_MULTIPLE_DAYS]: 'Multiple days',
^^^^^^^^^^^^^^^^^^^^^^^^^^
References:
../happy-tools/apps/schedule/src/containers/afk-request-form-dialog/index.js:50:2
50| AFK_DURATION_MULTIPLE_DAYS,
^^^^^^^^^^^^^^^^^^^^^^^^^^ [1]
../happy-tools/apps/schedule/src/lib/afk/constants.js:13:42
13| export const AFK_DURATION_MULTIPLE_DAYS: AfkDuration = 'AFK_DURATION_MULTIPLE_DAYS';
^^^^^^^^^^^ [2]
Error -------------------------------- ../happy-tools/apps/schedule/src/containers/afk-request-form-dialog/index.js:76:3
Cannot use `AFK_DURATION_FULL_DAY` [1] as a computed property. Computed properties may only be primitive literal values,
but `AfkDuration` [2] is a union. Can you add a literal type annotation to `AFK_DURATION_FULL_DAY` [1]? See
https://flow.org/en/docs/types/literals/ for more information on literal types.
../happy-tools/apps/schedule/src/containers/afk-request-form-dialog/index.js:76:3
76| [AFK_DURATION_FULL_DAY]: 'A day',
^^^^^^^^^^^^^^^^^^^^^
References:
../happy-tools/apps/schedule/src/containers/afk-request-form-dialog/index.js:48:2
48| AFK_DURATION_FULL_DAY,
^^^^^^^^^^^^^^^^^^^^^ [1]
../happy-tools/apps/schedule/src/lib/afk/constants.js:12:37
12| export const AFK_DURATION_FULL_DAY: AfkDuration = 'AFK_DURATION_FULL_DAY';
^^^^^^^^^^^ [2]
Error -------------------------------- ../happy-tools/apps/schedule/src/containers/afk-request-form-dialog/index.js:77:3
Cannot use `AFK_DURATION_HALF_DAY` [1] as a computed property. Computed properties may only be primitive literal values,
but `AfkDuration` [2] is a union. Can you add a literal type annotation to `AFK_DURATION_HALF_DAY` [1]? See
https://flow.org/en/docs/types/literals/ for more information on literal types.
../happy-tools/apps/schedule/src/containers/afk-request-form-dialog/index.js:77:3
77| [AFK_DURATION_HALF_DAY]: 'A half day',
^^^^^^^^^^^^^^^^^^^^^
References:
../happy-tools/apps/schedule/src/containers/afk-request-form-dialog/index.js:49:2
49| AFK_DURATION_HALF_DAY,
^^^^^^^^^^^^^^^^^^^^^ [1]
../happy-tools/apps/schedule/src/lib/afk/constants.js:14:37
14| export const AFK_DURATION_HALF_DAY: AfkDuration = 'AFK_DURATION_HALF_DAY';
^^^^^^^^^^^ [2]
Error -------------------------------- ../happy-tools/apps/schedule/src/containers/afk-request-form-dialog/index.js:78:3
Cannot use `AFK_DURATION_PARTIAL_DAY` [1] as a computed property. Computed properties may only be primitive literal
values, but `AfkDuration` [2] is a union. Can you add a literal type annotation to `AFK_DURATION_PARTIAL_DAY` [1]? See
https://flow.org/en/docs/types/literals/ for more information on literal types.
../happy-tools/apps/schedule/src/containers/afk-request-form-dialog/index.js:78:3
78| [AFK_DURATION_PARTIAL_DAY]: 'Partial day',
^^^^^^^^^^^^^^^^^^^^^^^^
References:
../happy-tools/apps/schedule/src/containers/afk-request-form-dialog/index.js:51:2
51| AFK_DURATION_PARTIAL_DAY,
^^^^^^^^^^^^^^^^^^^^^^^^ [1]
../happy-tools/apps/schedule/src/lib/afk/constants.js:15:40
15| export const AFK_DURATION_PARTIAL_DAY: AfkDuration = 'AFK_DURATION_PARTIAL_DAY';
^^^^^^^^^^^ [2]
Error -------------------------------- ../happy-tools/apps/schedule/src/containers/afk-requests/my-afk-requests.js:19:10
Cannot import `Afk` because there is no `Afk` export in `schedule/src/containers/afk-requests`. Did you mean
`import Afk from "..."`?
19| import { Afk } from 'schedule/src/containers/afk-requests';
^^^
Error -------------------------------- ../happy-tools/apps/schedule/src/containers/afk-requests/my-afk-requests.js:34:15
Cannot import `ActionOption` because there is no `ActionOption` export in `schedule/src/containers/afk-card`. Did you
mean `import ActionOption from "..."`?
34| import type { ActionOption } from 'schedule/src/containers/afk-card';
^^^^^^^^^^^^
Error ----------------------------- ../happy-tools/apps/schedule/src/containers/mini-schedule/mini-schedule-day.js:208:5
Cannot use call of method `getDayTypeClassname` [1] as a computed property. Computed properties may only be primitive
literal values, but this one may be either string [2] or string [3]. Can you add a literal type annotation to call of
method `getDayTypeClassname` [1]? See https://flow.org/en/docs/types/literals/ for more information on literal types.
../happy-tools/apps/schedule/src/containers/mini-schedule/mini-schedule-day.js:208:5
208| [this.getDayTypeClassname()]: true,
^^^^^^^^^^^^^^^^^^^^^^^^^^ [1]
References:
../happy-tools/apps/schedule/src/containers/mini-schedule/mini-schedule-day.js:93:11
93| return 'is-full-day-afk';
^^^^^^^^^^^^^^^^^ [2]
../happy-tools/apps/schedule/src/containers/mini-schedule/mini-schedule-day.js:98:11
98| return 'is-half-day-afk';
^^^^^^^^^^^^^^^^^ [3]
Error --------------------------------------- ../happy-tools/apps/schedule/src/containers/user-flag-modal/index.jsx:64:6
Cannot use `userFlag` [1] as a computed property. Computed properties may only be primitive literal values, but key
set [2] is a union. Can you add a literal type annotation to `userFlag` [1]? See
https://flow.org/en/docs/types/literals/ for more information on literal types.
../happy-tools/apps/schedule/src/containers/user-flag-modal/index.jsx:64:6
64| [userFlag]: true,
^^^^^^^^ [1]
References:
../happy-tools/apps/schedule/src/containers/user-flag-modal/index.jsx:38:12
38| userFlag: $Keys<Flags>,
^^^^^^^^^^^^ [2]
Error --------------------------------------------------- ../happy-tools/apps/schedule/src/lib/api/afk-requests.js:84:29
Cannot determine a type for object literal [1]. `AfkFormDialogPayload` [2] is inexact, so it may contain `userId` with a
type that conflicts with `userId`'s definition in object literal [3]. Can you make `AfkFormDialogPayload` [2] exact?
../happy-tools/apps/schedule/src/lib/api/afk-requests.js:84:29
84| } = { ...defaultParams, ...params };
^^^^^^
References:
../happy-tools/apps/schedule/src/lib/api/afk-requests.js:84:6
84| } = { ...defaultParams, ...params };
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1]
../happy-tools/apps/schedule/src/lib/api/afk-requests.js:63:23
63| params: AfkRequest | AfkFormDialogPayload
^^^^^^^^^^^^^^^^^^^^ [2]
../happy-tools/apps/schedule/src/lib/api/afk-requests.js:65:24
v
65| const defaultParams = {
66| afkRequestId: null,
67| approvalStatus: null,
68| responderUserId: null,
69| respondedAt: null,
70| userId: null,
71| };
^ [3]
Error ------------------------------------------------------------ ../happy-tools/apps/schedule/src/lib/blocks.js:117:77
Cannot determine a type for object literal [1]. `Meta` [2] cannot be spread because the indexer string [3] may overwrite
properties with explicit keys in a way that Flow cannot track. Can you spread `Meta` [2] first or remove the indexer?
../happy-tools/apps/schedule/src/lib/blocks.js:117:77
117| return createBlock({ ...block.timespan, ...timespan }, { ...block.meta, ...meta }, block.uid);
^^^^
References:
../happy-tools/apps/schedule/src/lib/blocks.js:117:57
117| return createBlock({ ...block.timespan, ...timespan }, { ...block.meta, ...meta }, block.uid);
^^^^^^^^^^^^^^^^^^^^^^^^^^ [1]
../happy-tools/apps/schedule/src/lib/blocks.js:115:14
115| { timespan, meta }: UpdateableProps
^^^^ [2]
../happy-tools/apps/schedule/src/lib/blocks.js:35:21
35| type Meta = { [key: string]: any };
^^^^^^ [3]
Error ------------------------------------------------------------ ../happy-tools/apps/schedule/src/lib/blocks.js:128:77
Cannot determine a type for object literal [1]. `Meta` [2] cannot be spread because the indexer string [3] may overwrite
properties with explicit keys in a way that Flow cannot track. Can you spread `Meta` [2] first or remove the indexer?
../happy-tools/apps/schedule/src/lib/blocks.js:128:77
128| return createBlock({ ...block.timespan, ...timespan }, { ...block.meta, ...meta }, block.uid);
^^^^
References:
../happy-tools/apps/schedule/src/lib/blocks.js:128:57
128| return createBlock({ ...block.timespan, ...timespan }, { ...block.meta, ...meta }, block.uid);
^^^^^^^^^^^^^^^^^^^^^^^^^^ [1]
../happy-tools/apps/schedule/src/lib/blocks.js:126:14
126| { timespan, meta }: UpdateableProps
^^^^ [2]
../happy-tools/apps/schedule/src/lib/blocks.js:35:21
35| type Meta = { [key: string]: any };
^^^^^^ [3]
Error ------------------------------------------------------------ ../happy-tools/apps/schedule/src/lib/blocks.js:136:77
Cannot determine a type for object literal [1]. `Meta` [2] cannot be spread because the indexer string [3] may overwrite
properties with explicit keys in a way that Flow cannot track. Can you spread `Meta` [2] first or remove the indexer?
../happy-tools/apps/schedule/src/lib/blocks.js:136:77
136| return createBlock({ ...block.timespan, ...timespan }, { ...block.meta, ...meta }, block.uid);
^^^^
References:
../happy-tools/apps/schedule/src/lib/blocks.js:136:57
136| return createBlock({ ...block.timespan, ...timespan }, { ...block.meta, ...meta }, block.uid);
^^^^^^^^^^^^^^^^^^^^^^^^^^ [1]
../happy-tools/apps/schedule/src/lib/blocks.js:135:63
135| export const updateTaskBlock = (block: TaskBlock, { timespan, meta }: UpdateableProps): Block => {
^^^^ [2]
../happy-tools/apps/schedule/src/lib/blocks.js:35:21
35| type Meta = { [key: string]: any };
^^^^^^ [3]
Error ------------------------------------------------------ ../happy-tools/apps/schedule/src/lib/blocks/index.js:111:77
Cannot determine a type for object literal [1]. `Meta` [2] cannot be spread because the indexer string [3] may overwrite
properties with explicit keys in a way that Flow cannot track. Can you spread `Meta` [2] first or remove the indexer?
../happy-tools/apps/schedule/src/lib/blocks/index.js:111:77
111| return createBlock({ ...block.timespan, ...timespan }, { ...block.meta, ...meta }, block.uid);
^^^^
References:
../happy-tools/apps/schedule/src/lib/blocks/index.js:111:57
111| return createBlock({ ...block.timespan, ...timespan }, { ...block.meta, ...meta }, block.uid);
^^^^^^^^^^^^^^^^^^^^^^^^^^ [1]
../happy-tools/apps/schedule/src/lib/blocks/index.js:109:14
109| { timespan, meta }: UpdateableProps
^^^^ [2]
../happy-tools/apps/schedule/src/lib/blocks/index.js:29:28
29| export type Meta = { [key: string]: any };
^^^^^^ [3]
Error ------------------------------------------------------ ../happy-tools/apps/schedule/src/lib/blocks/index.js:122:77
Cannot determine a type for object literal [1]. `Meta` [2] cannot be spread because the indexer string [3] may overwrite
properties with explicit keys in a way that Flow cannot track. Can you spread `Meta` [2] first or remove the indexer?
../happy-tools/apps/schedule/src/lib/blocks/index.js:122:77
122| return createBlock({ ...block.timespan, ...timespan }, { ...block.meta, ...meta }, block.uid);
^^^^
References:
../happy-tools/apps/schedule/src/lib/blocks/index.js:122:57
122| return createBlock({ ...block.timespan, ...timespan }, { ...block.meta, ...meta }, block.uid);
^^^^^^^^^^^^^^^^^^^^^^^^^^ [1]
../happy-tools/apps/schedule/src/lib/blocks/index.js:120:14
120| { timespan, meta }: UpdateableProps
^^^^ [2]
../happy-tools/apps/schedule/src/lib/blocks/index.js:29:28
29| export type Meta = { [key: string]: any };
^^^^^^ [3]
Error ------------------------------------------------------ ../happy-tools/apps/schedule/src/lib/blocks/index.js:130:77
Cannot determine a type for object literal [1]. `Meta` [2] cannot be spread because the indexer string [3] may overwrite
properties with explicit keys in a way that Flow cannot track. Can you spread `Meta` [2] first or remove the indexer?
../happy-tools/apps/schedule/src/lib/blocks/index.js:130:77
130| return createBlock({ ...block.timespan, ...timespan }, { ...block.meta, ...meta }, block.uid);
^^^^
References:
../happy-tools/apps/schedule/src/lib/blocks/index.js:130:57
130| return createBlock({ ...block.timespan, ...timespan }, { ...block.meta, ...meta }, block.uid);
^^^^^^^^^^^^^^^^^^^^^^^^^^ [1]
../happy-tools/apps/schedule/src/lib/blocks/index.js:129:63
129| export const updateTaskBlock = (block: TaskBlock, { timespan, meta }: UpdateableProps): Block => {
^^^^ [2]
../happy-tools/apps/schedule/src/lib/blocks/index.js:29:28
29| export type Meta = { [key: string]: any };
^^^^^^ [3]
Error ------------------------------------------ ../happy-tools/apps/schedule/src/sections/planner/apply-gesture.js:93:6
Cannot determine a type for object literal [1]. object type [2] cannot be spread because the indexer `V` [3] may
overwrite properties with explicit keys in a way that Flow cannot track. Can you spread object type [2] first or remove
the indexer?
../happy-tools/apps/schedule/src/sections/planner/apply-gesture.js:93:6
93| ...keyBy(derivedCoverageBlocks, 'timespan.startTime'),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
References:
../happy-tools/apps/schedule/src/sections/planner/apply-gesture.js:91:16
v
91| return values({
92| ...coverageBlocksSnapshot,
93| ...keyBy(derivedCoverageBlocks, 'timespan.startTime'),
94| });
^ [1]
../happy-tools/flow-typed/npm/lodash_v4.x.x.js:649:8
649| ): { [key: V]: T };
^^^^^^^^^^^^^^^ [2]
../happy-tools/flow-typed/npm/lodash_v4.x.x.js:646:14
646| keyBy<T, V>(
^ [3]
Error -------------------------------------------------- ../happy-tools/apps/schedule/src/sections/planner/main.js:621:5
Cannot use `key` [1] as a computed property. Computed properties may only be primitive literal values, but key set [2]
is a union. Can you add a literal type annotation to `key` [1]? See https://flow.org/en/docs/types/literals/ for more
information on literal types.
../happy-tools/apps/schedule/src/sections/planner/main.js:621:5
621| [key]: value,
^^^ [1]
References:
../happy-tools/apps/schedule/src/sections/planner/main.js:617:22
617| setUserFlag = (key: $Keys<Flags>, value: $Values<Flags>): void => {
^^^^^^^^^^^^ [2]
Error ------------------------------------------------- ../happy-tools/apps/schedule/src/sections/schedule/main.js:527:7
Cannot use `daySettingsId` [1] as a computed property. Computed properties may only be primitive literal values, but
union type [2] is a union. Can you add a literal type annotation to `daySettingsId` [1]? See
https://flow.org/en/docs/types/literals/ for more information on literal types.
../happy-tools/apps/schedule/src/sections/schedule/main.js:527:7
527| [daySettingsId]: {
^^^^^^^^^^^^^
References:
../happy-tools/apps/schedule/src/sections/schedule/main.js:519:9
519| let daySettingsId: string | number = uuid();
^^^^^^^^^^^^^ [1]
../happy-tools/apps/schedule/src/sections/schedule/main.js:519:24
519| let daySettingsId: string | number = uuid();
^^^^^^^^^^^^^^^ [2]
Error ------------------------------------------------ ../happy-tools/apps/schedule/src/sections/schedule/main.js:627:48
Cannot use `daySettingsId` [1] as a computed property. Computed properties may only be primitive literal values, but
conditional [2] is a union. Can you add a literal type annotation to `daySettingsId` [1]? See
https://flow.org/en/docs/types/literals/ for more information on literal types.
../happy-tools/apps/schedule/src/sections/schedule/main.js:627:48
627| daySettings: { ...daySettingsModification, [daySettingsId]: daySettings },
^^^^^^^^^^^^^ [1]
References:
../happy-tools/apps/schedule/src/sections/schedule/main.js:607:25
607| const daySettingsId = settings.daySettingsId ? settings.daySettingsId : uuid();
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [2]
Error ------------------------------------------------ ../happy-tools/apps/schedule/src/sections/schedule/main.js:697:27
Cannot use `dayId` [1] as a computed property. Computed properties may only be primitive literal values, but this one
may be either string [2] or number [3]. Can you add a literal type annotation to `dayId` [1]? See
https://flow.org/en/docs/types/literals/ for more information on literal types.
../happy-tools/apps/schedule/src/sections/schedule/main.js:697:27
697| return { ...updates, [dayId]: settings };
^^^^^ [1]
References:
../happy-tools/apps/schedule/src/state/entities/schedule-templates/reducer.js:37:18
37| daySettingsId?: string | number,
^^^^^^ [2]
../happy-tools/apps/schedule/src/state/entities/schedule-templates/reducer.js:37:27
37| daySettingsId?: string | number,
^^^^^^ [3]
Error ------------------------------------------------- ../happy-tools/apps/schedule/src/sections/schedule/utils.js:91:6
Cannot determine a type for object literal [1]. object type [2] cannot be spread because the indexer `V` [3] may
overwrite properties with explicit keys in a way that Flow cannot track. Can you spread object type [2] first or remove
the indexer?
../happy-tools/apps/schedule/src/sections/schedule/utils.js:91:6
91| ...keyBy(updated, 'uid'),
^^^^^^^^^^^^^^^^^^^^^
References:
../happy-tools/apps/schedule/src/sections/schedule/utils.js:89:9
v
89| return {
90| ...keyBy(existingBlocks, 'uid'),
91| ...keyBy(updated, 'uid'),
92| };
^ [1]
../happy-tools/flow-typed/npm/lodash_v4.x.x.js:649:8
649| ): { [key: V]: T };
^^^^^^^^^^^^^^^ [2]
../happy-tools/flow-typed/npm/lodash_v4.x.x.js:646:14
646| keyBy<T, V>(
^ [3]
Error ------------------------------------------- ../happy-tools/apps/schedule/src/sections/staffing-needs/main.js:334:8
Cannot determine a type for object literal [1]. object type [2] cannot be spread because the indexer `V` [3] may
overwrite properties with explicit keys in a way that Flow cannot track. Can you spread object type [2] first or remove
the indexer?
../happy-tools/apps/schedule/src/sections/staffing-needs/main.js:334:8
334| ...keyBy(deleted, 'uid'),
^^^^^^^^^^^^^^^^^^^^^
References:
../happy-tools/apps/schedule/src/sections/staffing-needs/main.js:332:13
v
332| deleted: {
333| ...cache.deleted,
334| ...keyBy(deleted, 'uid'),
335| },
^ [1]
../happy-tools/flow-typed/npm/lodash_v4.x.x.js:649:8
649| ): { [key: V]: T };
^^^^^^^^^^^^^^^ [2]
../happy-tools/flow-typed/npm/lodash_v4.x.x.js:646:14
646| keyBy<T, V>(
^ [3]
Error ------------------------------------------- ../happy-tools/apps/schedule/src/sections/staffing-needs/utils.js:53:6
Cannot determine a type for object literal [1]. object type [2] cannot be spread because the indexer `V` [3] may
overwrite properties with explicit keys in a way that Flow cannot track. Can you spread object type [2] first or remove
the indexer?
../happy-tools/apps/schedule/src/sections/staffing-needs/utils.js:53:6
53| ...keyBy(updated, 'uid'),
^^^^^^^^^^^^^^^^^^^^^
References:
../happy-tools/apps/schedule/src/sections/staffing-needs/utils.js:51:16
v
51| return values({
52| ...keyBy(remainingBlocks, 'uid'),
53| ...keyBy(updated, 'uid'),
54| });
^ [1]
../happy-tools/flow-typed/npm/lodash_v4.x.x.js:654:8
654| ): { [key: V]: A };
^^^^^^^^^^^^^^^ [2]
../happy-tools/flow-typed/npm/lodash_v4.x.x.js:651:11
651| keyBy<V, A, I, T: { [id: I]: A }>(
^ [3]
Error ---------------------------------- ../happy-tools/apps/schedule/src/state/entities/published-dates/reducer.js:27:8
Cannot determine a type for object literal [1]. object type [2] cannot be spread because the indexer `K` [3] may
overwrite properties with explicit keys in a way that Flow cannot track. Can you spread object type [2] first or remove
the indexer?
../happy-tools/apps/schedule/src/state/entities/published-dates/reducer.js:27:8
27| ...zipObject(action.dates, action.dates),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
References:
../happy-tools/apps/schedule/src/state/entities/published-dates/reducer.js:25:11
v
25| return {
26| ...state,
27| ...zipObject(action.dates, action.dates),
28| };
^ [1]
../happy-tools/flow-typed/npm/lodash_v4.x.x.js:500:59
500| zipObject<K, V>(props: Array<K>, values?: ?Array<V>): { [key: K]: V };
^^^^^^^^^^^^^^^ [2]
../happy-tools/flow-typed/npm/lodash_v4.x.x.js:500:15
500| zipObject<K, V>(props: Array<K>, values?: ?Array<V>): { [key: K]: V };
^ [3]
Error -------------------------------------- ../happy-tools/apps/schedule/src/state/entities/task-blocks/reducer.js:52:8
Cannot determine a type for object literal [1]. object type [2] cannot be spread because the indexer `V` [3] may
overwrite properties with explicit keys in a way that Flow cannot track. Can you spread object type [2] first or remove
the indexer?
../happy-tools/apps/schedule/src/state/entities/task-blocks/reducer.js:52:8
52| ...keyBy(action.blocks, 'uid'),
^^^^^^^^^^^^^^^^^^^^^^^^^^^
References:
../happy-tools/apps/schedule/src/state/entities/task-blocks/reducer.js:50:11
v
50| return {
51| ...(action.replaceExisting ? {} : state),
52| ...keyBy(action.blocks, 'uid'),
53| };
^ [1]
../happy-tools/flow-typed/npm/lodash_v4.x.x.js:649:8
649| ): { [key: V]: T };
^^^^^^^^^^^^^^^ [2]
../happy-tools/flow-typed/npm/lodash_v4.x.x.js:646:14
646| keyBy<T, V>(
^ [3]
Error ----------------------------------------- ../happy-tools/apps/schedule/src/state/entities/users/selectors.js:347:7
Cannot determine a type for object literal [1]. object type [2] is inexact and may have a property key that conflicts
with `V` [3] or a property value that conflicts with `T` [4]. Can you make object type [2] exact?
../happy-tools/apps/schedule/src/state/entities/users/selectors.js:347:7
347| ...keyBy(usersWithScheduledTasks, 'userId'),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
References:
../happy-tools/apps/schedule/src/state/entities/users/selectors.js:345:10
v
345| return {
346| ...keyBy(usersWithScheduledAvailability, 'userId'),
347| ...keyBy(usersWithScheduledTasks, 'userId'),
348| };
^ [1]
../happy-tools/flow-typed/npm/lodash_v4.x.x.js:650:66
650| keyBy(array: void | null, iteratee?: ?ValueOnlyIteratee<*>): {};
^^ [2]
../happy-tools/flow-typed/npm/lodash_v4.x.x.js:646:14
646| keyBy<T, V>(
^ [3]
../happy-tools/flow-typed/npm/lodash_v4.x.x.js:646:11
646| keyBy<T, V>(
^ [4]
Error ----------------------------------------- ../happy-tools/apps/schedule/src/state/entities/users/selectors.js:394:7
Cannot determine a type for object literal [1]. `UsersIndex` [2] cannot be spread because the indexer number [3] may
overwrite properties with explicit keys in a way that Flow cannot track. Can you spread `UsersIndex` [2] first or remove
the indexer?
../happy-tools/apps/schedule/src/state/entities/users/selectors.js:394:7
394| ...usersWithScheduledBlocks,
^^^^^^^^^^^^^^^^^^^^^^^^
References:
../happy-tools/apps/schedule/src/state/entities/users/selectors.js:392:28
v
392| const allRelevantUsers = {
393| ...projectUsers,
394| ...usersWithScheduledBlocks,
395| };
^ [1]
../happy-tools/apps/schedule/src/state/entities/users/selectors.js:336:6
336| ) => UsersIndex | null = treeSelect(
^^^^^^^^^^ [2]
../happy-tools/apps/core/src/state/entities/users/index.js:126:7
126| [id: number]: User,
^^^^^^ [3]
Error ----------------- ../happy-tools/apps/schedule/src/state/middleware/general-persistence/test/afk-requests.js:45:35
Cannot assign object literal to `responseData` because:
- undefined [1] is incompatible with number [2] in property `afkRequestId`.
- undefined [3] is incompatible with enum [4] in property `approvalStatus`.
../happy-tools/apps/schedule/src/state/middleware/general-persistence/test/afk-requests.js:45:35
v
45| const responseData: AfkRequest = {
46| ...formData,
47| createdAt: 0,
48| respondedAt: 0,
49| responderUserId: 0,
50| taskBlocks: [],
51| userId: 0,
52| };
^
References:
../happy-tools/apps/schedule/src/containers/afk-request-form-dialog/index.js:102:17
102| afkRequestId?: number,
^^^^^^ [1]
../happy-tools/apps/schedule/src/state/entities/afk-requests/reducer.js:26:16
26| afkRequestId: number,
^^^^^^ [2]
../happy-tools/apps/schedule/src/containers/afk-request-form-dialog/index.js:103:19
103| approvalStatus?: AfkApprovalStatus,
^^^^^^^^^^^^^^^^^ [3]
../happy-tools/apps/schedule/src/state/entities/afk-requests/reducer.js:27:18
27| approvalStatus: AfkApprovalStatus,
^^^^^^^^^^^^^^^^^ [4]
Error ---------------------------- ../happy-tools/apps/schedule/src/state/ui/organization-modifications/reducer.js:18:56
Cannot assign function to `reducer` because:
- property `firstDayOfWeek` is missing in object literal [1] but exists in `OrganizationPreferences` [2] in property
`preferences` of the return value.
- property `schedulableHours` is missing in object literal [1] but exists in `OrganizationPreferences` [2] in property
`preferences` of the return value.
- property `timezone` is missing in object literal [1] but exists in `OrganizationPreferences` [2] in property
`preferences` of the return value.
- property `workHours` is missing in object literal [1] but exists in `OrganizationPreferences` [2] in property
`preferences` of the return value.
../happy-tools/apps/schedule/src/state/ui/organization-modifications/reducer.js:18:56
v-----------------------------------------
18| const reducer: AppReducer<OrganizationModifications> = (state = defaultOrganization, action) => {
19| switch (action.type) {
20| case 'AUTH_RESET':
21| case 'UI_ORGANIZATION_MODIFICATIONS_CLEAR': {
22| return defaultOrganization;
23| }
24| case 'UI_ORGANIZATION_MODIFICATIONS_SET': {
25| return {
26| ...state,
27| ...action.organization,
28| preferences: { ...action.organization.preferences },
29| };
30| }
31| }
32| return state;
33| };
^
References:
../happy-tools/apps/schedule/src/state/ui/organization-modifications/reducer.js:28:18
28| preferences: { ...action.organization.preferences },
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1]
../happy-tools/apps/schedule/src/state/ui/organization-modifications/reducer.js:13:16
13| preferences?: OrganizationPreferences,
^^^^^^^^^^^^^^^^^^^^^^^ [2]
Error --------------------------- ../happy-tools/apps/schedule/src/state/ui/organization-modifications/selectors.js:35:6
Cannot determine a type for object literal [1]. `OrganizationModifications` [2] is inexact, so it may contain
`updatedAt` with a type that conflicts with `updatedAt`'s definition in `Organization` [3]. Can you make
`OrganizationModifications` [2] exact?
../happy-tools/apps/schedule/src/state/ui/organization-modifications/selectors.js:35:6
35| ...modifications,
^^^^^^^^^^^^^
References:
../happy-tools/apps/schedule/src/state/ui/organization-modifications/selectors.js:33:9
v
33| return {
34| ...organization,
35| ...modifications,
36| preferences: {
37| ...organization.preferences,
38| ...modifications.preferences,
39| },
40| };
^ [1]
../happy-tools/apps/schedule/src/state/ui/organization-modifications/selectors.js:22:64
22| export function getOrganizationModifications(state: AppState): OrganizationModifications {
^^^^^^^^^^^^^^^^^^^^^^^^^ [2]
../happy-tools/apps/core/src/state/auth/selectors.js:182:59
182| export const getCurrentOrganization = (state: AppState): ?Organization => {
^^^^^^^^^^^^ [3]
Error ------------------------------------- ../happy-tools/apps/schedule/src/state/ui/process-indicators/reducer.js:31:6
Cannot use `action.process` [1] as a computed property. Computed properties may only be primitive literal values, but
`Processes` [2] is a union. Can you add a literal type annotation to `action.process` [1]? See
https://flow.org/en/docs/types/literals/ for more information on literal types.
../happy-tools/apps/schedule/src/state/ui/process-indicators/reducer.js:31:6
31| [action.process]: [...state[action.process], action.indicator],
^^^^^^^^^^^^^^ [1]
References:
../happy-tools/apps/schedule/src/state/ui/process-indicators/index.js:76:11
76| process: Processes,
^^^^^^^^^ [2]
Error ------------------------------------- ../happy-tools/apps/schedule/src/state/ui/process-indicators/reducer.js:43:6
Cannot use `action.process` [1] as a computed property. Computed properties may only be primitive literal values, but
`Processes` [2] is a union. Can you add a literal type annotation to `action.process` [1]? See
https://flow.org/en/docs/types/literals/ for more information on literal types.
../happy-tools/apps/schedule/src/state/ui/process-indicators/reducer.js:43:6
43| [action.process]: [
^^^^^^^^^^^^^^ [1]
References:
../happy-tools/apps/schedule/src/state/ui/process-indicators/index.js:76:11
76| process: Processes,
^^^^^^^^^ [2]
Error -------------------------------- ../happy-tools/apps/schedule/src/state/ui/profile-modifications/selectors.js:58:9
Cannot return object literal because:
- undefined [1] is incompatible with string [2] in property `notes`.
- undefined [3] is incompatible with `Timezone` [4] in property `timezone`.
- undefined [5] is incompatible with string [6] in property `allAssignmentsInChat`.
- undefined [7] is incompatible with string [8] in property `breaksPreference`.
- ... 4 more errors.
../happy-tools/apps/schedule/src/state/ui/profile-modifications/selectors.js:58:9
v
58| return {
59| ...defaultProfile,
60| firstName: user.firstName,
61| lastName: user.lastName,
62| email: user.email,
63| notes: preferences.notes,
64| timezone: preferences.timezone,
65| schedulableTasks: user.projectsTaskTypesIds,
66| allAssignmentsInChat: preferences.allAssignmentsInChat,
67| breaksPreference: preferences.breaksPreference,
68| businessOneOnOne: preferences.businessOneOnOne,
69| consecutiveChatHours: preferences.consecutiveChatHours,
70| fourHourChatBlocks: preferences.fourHourChatBlocks,
71| notifications: getCurrentUserNotifications(state),
72| flags: preferences.flags,
73| };
^
References:
../happy-tools/apps/core/src/state/entities/users/index.js:51:10
51| notes?: string,
^^^^^^ [1]
../happy-tools/apps/schedule/src/state/ui/profile-modifications/reducer.js:36:9
36| notes: string,
^^^^^^ [2]
../happy-tools/apps/core/src/state/entities/users/index.js:53:13
53| timezone?: Timezone,
^^^^^^^^ [3]
../happy-tools/apps/schedule/src/state/ui/profile-modifications/reducer.js:35:12
35| timezone: Timezone,
^^^^^^^^ [4]
../happy-tools/apps/core/src/state/entities/users/index.js:45:25
45| allAssignmentsInChat?: string,
^^^^^^ [5]
../happy-tools/apps/schedule/src/state/ui/profile-modifications/reducer.js:38:24
38| allAssignmentsInChat: string,
^^^^^^ [6]
../happy-tools/apps/core/src/state/entities/users/index.js:46:21
46| breaksPreference?: string,
^^^^^^ [7]
../happy-tools/apps/schedule/src/state/ui/profile-modifications/reducer.js:39:20
39| breaksPreference: string,
^^^^^^ [8]
... 14 more errors (only 50 out of 64 errors displayed)
To see all errors, re-run Flow with --show-all-errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment