Skip to content

Instantly share code, notes, and snippets.

@acusti
Last active November 30, 2018 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acusti/cfbaa43f6950e11100dc6be811a60c61 to your computer and use it in GitHub Desktop.
Save acusti/cfbaa43f6950e11100dc6be811a60c61 to your computer and use it in GitHub Desktop.
CSG flow errors
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/brandcast-next/shared/api/api-crud.js:40:92
Cannot get edge.node because property node is missing in mixed [1].
node_modules/brandcast-next/shared/api/api-crud.js
37│ stringOf(get(result, ['data', fieldName, 'pageInfo', 'endCursor']));
38│
39│ const getResults = (result, fieldName: string) =>
40│ arrayOf(get(result, ['data', fieldName, 'edges'])).map((edge) => objectOf(edge && edge.node));
41│
42│ type FetchAllGraphQLResults = Array<*>;
43│ type FetchGraphQLPayload = {
node_modules/brandcast-next/shared/utils/get-of-type.js
[1] 12│ export const arrayOf = (a: mixed, defaultValue?: Array<*> = []): Array<*> =>
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/brandcast-next/shared/reducers/notifications.js:61:46
Cannot call removeNotification with payload bound to payload because:
• mixed [1] is incompatible with NotificationRecordProps [2].
• mixed [1] is incompatible with RecordInstance [3].
node_modules/brandcast-next/shared/reducers/notifications.js
58│ return addNotification(state, payload);
59│ case actionTypes.notifications.REMOVE:
60│ /* $FlowFixMe: Not sure how to check type of Record */
61│ return removeNotification(state, payload);
62│ default:
63│ return state;
64│ }
flow/lib/types.js
[1] 274│ payload?: mixed,
node_modules/brandcast-next/shared/records/NotificationRecord.js
[2] 16│ export type NotificationRecord = RecordOf<NotificationRecordProps>;
node_modules/immutable/dist/immutable.js.flow
[3] 1388│ type RecordOf<Values: Object> = RecordInstance<Values> & $ReadOnly<Values>;
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/brandcast-next/shared/reducers/views.js:589:70
Cannot call updatedState.setIn because property setIn is missing in mixed [1].
node_modules/brandcast-next/shared/reducers/views.js
586│ // type update = { path: string, value: mixed }
587│ const updates = arrayOf(payloadAsMap.get('updates'));
588│ if (updates.length) {
589│ return updates.reduce((updatedState, update) => updatedState.setIn(update.path, update.value), state);
590│ }
591│ // N.B. the below code is to accommodate payloads
592│ // that only consist of an id string, objectOf uses
node_modules/brandcast-next/shared/utils/get-of-type.js
[1] 12│ export const arrayOf = (a: mixed, defaultValue?: Array<*> = []): Array<*> =>
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/brandcast-next/shared/reducers/views.js:589:83
Cannot get update.path because property path is missing in mixed [1].
node_modules/brandcast-next/shared/reducers/views.js
586│ // type update = { path: string, value: mixed }
587│ const updates = arrayOf(payloadAsMap.get('updates'));
588│ if (updates.length) {
589│ return updates.reduce((updatedState, update) => updatedState.setIn(update.path, update.value), state);
590│ }
591│ // N.B. the below code is to accommodate payloads
592│ // that only consist of an id string, objectOf uses
node_modules/brandcast-next/shared/utils/get-of-type.js
[1] 12│ export const arrayOf = (a: mixed, defaultValue?: Array<*> = []): Array<*> =>
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/brandcast-next/shared/reducers/views.js:589:96
Cannot get update.value because property value is missing in mixed [1].
node_modules/brandcast-next/shared/reducers/views.js
586│ // type update = { path: string, value: mixed }
587│ const updates = arrayOf(payloadAsMap.get('updates'));
588│ if (updates.length) {
589│ return updates.reduce((updatedState, update) => updatedState.setIn(update.path, update.value), state);
590│ }
591│ // N.B. the below code is to accommodate payloads
592│ // that only consist of an id string, objectOf uses
node_modules/brandcast-next/shared/utils/get-of-type.js
[1] 12│ export const arrayOf = (a: mixed, defaultValue?: Array<*> = []): Array<*> =>
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/brandcast-next/shared/reducers/views.js:627:54
Cannot call viewProps.mergeDeepIn because property @@iterator is missing in
undefined [1] but exists in $Iterable [2] in array element.
node_modules/brandcast-next/shared/reducers/views.js
624│ return viewProps.delete(property);
625│ }
626│ if (isMap(nextValue) && isMap(existingView.get(property))) {
627│ return viewProps.mergeDeepIn([property], nextValue);
628│ }
629│ return viewProps.set(property, nextValue);
630│ }, existingView);
node_modules/immutable/dist/immutable.js.flow
[1] 61│ get(key: K, ..._: []): V | void;
:
[2] 919│ ...collections: (Iterable<mixed> | PlainObjInput<mixed, mixed>)[]
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/brandcast-next/shared/reducers/workingData.js:848:47
Cannot call payload.reduce with function bound to callbackfn because:
• property propertyPath is missing in mixed [1] in the second argument.
• property value is missing in mixed [1] in the second argument.
node_modules/brandcast-next/shared/reducers/workingData.js
845│ startingNode = mapOf(structuralNodes.get(emptyNodeId), Map({ id: emptyNodeId }));
846│ }
847│ // Performs atomic updates on propPath/value pairs
848│ const updatedContent = payload.reduce((nextContent, { propertyPath = [], value }) => {
849│ if (!propertyPath.length) return nextContent;
850│
851│ let calculatedPropertyPath = propertyPath;
852│
853│ // TODO Adapt checks to also support backgroundImages
854│ const property = propertyPath[propertyPath.length - 1];
855│ const updatedPropertyPath = getModifiedStylePropertyPath({
856│ cssState,
857│ mediaQuery,
858│ propertyPath,
859│ });
860│ calculatedPropertyPath = getSelectedComponentPropertyPath(target, updatedPropertyPath);
861│
862│ let contentUpdate = createCollectionIn(calculatedPropertyPath, value);
:
930│ .reduce(
931│ (update, val, key) =>
932│ key === property
933│ ? update
934│ : update.setIn([...updatingStylePath, key], ''),
935│ contentUpdate,
936│ )
937│ .setIn(
938│ [...interactionStylesPropertyPath, interactionStyleIndex, 'id'],
939│ interactionId,
940│ );
941│ }
942│ }
943│ return mergeDeep(nextContent, contentUpdate);
944│ }, startingNode);
945│
946│ const newStructNodes = updateComponentNode(
947│ nextState,
node_modules/brandcast-next/shared/utils/get-of-type.js
[1] 12│ export const arrayOf = (a: mixed, defaultValue?: Array<*> = []): Array<*> =>
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/brandcast-next/shared/reducers/workingData.js:894:33
Cannot call nextContent.getIn because:
• Either array literal [1] has an unknown number of elements, so is incompatible with
tuple type [2].
• Or array literal [1] has an unknown number of elements, so is incompatible with
tuple type [3].
• Or array literal [1] has an unknown number of elements, so is incompatible with
tuple type [4].
• Or array literal [1] has an unknown number of elements, so is incompatible with
tuple type [5].
• Or array literal [1] has an unknown number of elements, so is incompatible with
tuple type [6].
• Or array literal [1] has an unknown number of elements, so is incompatible with
tuple type [7].
node_modules/brandcast-next/shared/reducers/workingData.js
[1] 888│ const interactionStylesPropertyPath = [
889│ ...calculatedPropertyPath.slice(0, spliceStart),
890│ 'interactions',
891│ ];
892│ const interactionStyles = listOf(
893│ // $FlowFixMe: https://github.com/facebook/immutable-js/issues/1409
894│ nextContent.getIn(interactionStylesPropertyPath),
895│ );
896│ let interactionStyleIndex = interactionStyles.findIndex(
897│ (interaction) => interaction.get('id') === interactionId,
node_modules/immutable/dist/immutable.js.flow
[2] 71│ getIn(keyPath: [], notSetValue?: mixed): this;
[3] 72│ getIn<NSV>(keyPath: [K], notSetValue: NSV): V | NSV;
[4] 73│ getIn<NSV, K2: $KeyOf<V>>(keyPath: [K, K2], notSetValue: NSV): $ValOf<V, K2> | NSV;
[5] 74│ getIn<NSV, K2: $KeyOf<V>, K3: $KeyOf<$ValOf<V, K2>>>(keyPath: [K, K2, K3], notSetValue: NSV): $ValOf<$ValOf<V, K2>, K3> | NSV;
[6] 75│ getIn<NSV, K2: $KeyOf<V>, K3: $KeyOf<$ValOf<V, K2>>, K4: $KeyOf<$ValOf<$ValOf<V, K2>, K3>>>(keyPath: [K, K2, K3, K4], notSetValue: NSV): $ValOf<$ValOf<$ValOf<V, K2>, K3>, K4> | NSV;
[7] 76│ getIn<NSV, K2: $KeyOf<V>, K3: $KeyOf<$ValOf<V, K2>>, K4: $KeyOf<$ValOf<$ValOf<V, K2>, K3>>, K5: $KeyOf<$ValOf<$ValOf<$ValOf<V, K2>, K3>, K4>>>(keyPath: [K, K2, K3, K4, K5], notSetValue: NSV): $ValOf<$ValOf<$ValOf<$ValOf<V, K2>, K3>, K4>, K5> | NSV;
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/brandcast-next/shared/reducers/workingData.js:929:55
Cannot call nextContent.getIn because:
• Either array literal [1] has an unknown number of elements, so is incompatible with
tuple type [2].
• Or array literal [1] has an unknown number of elements, so is incompatible with
tuple type [3].
• Or array literal [1] has an unknown number of elements, so is incompatible with
tuple type [4].
• Or array literal [1] has an unknown number of elements, so is incompatible with
tuple type [5].
• Or array literal [1] has an unknown number of elements, so is incompatible with
tuple type [6].
• Or array literal [1] has an unknown number of elements, so is incompatible with
tuple type [7].
node_modules/brandcast-next/shared/reducers/workingData.js
[1] 921│ const updatingStylePath = [
922│ ...interactionStylesPropertyPath,
923│ interactionStyleIndex,
924│ 'style',
925│ ];
926│ // For case of reusing orphaned interactions,
927│ // Set any existing styles (other than current property) to empty string
928│ // $FlowFixMe: https://github.com/facebook/immutable-js/issues/1409
929│ contentUpdate = mapOf(nextContent.getIn(updatingStylePath))
930│ .reduce(
931│ (update, val, key) =>
932│ key === property
node_modules/immutable/dist/immutable.js.flow
[2] 71│ getIn(keyPath: [], notSetValue?: mixed): this;
[3] 72│ getIn<NSV>(keyPath: [K], notSetValue: NSV): V | NSV;
[4] 73│ getIn<NSV, K2: $KeyOf<V>>(keyPath: [K, K2], notSetValue: NSV): $ValOf<V, K2> | NSV;
[5] 74│ getIn<NSV, K2: $KeyOf<V>, K3: $KeyOf<$ValOf<V, K2>>>(keyPath: [K, K2, K3], notSetValue: NSV): $ValOf<$ValOf<V, K2>, K3> | NSV;
[6] 75│ getIn<NSV, K2: $KeyOf<V>, K3: $KeyOf<$ValOf<V, K2>>, K4: $KeyOf<$ValOf<$ValOf<V, K2>, K3>>>(keyPath: [K, K2, K3, K4], notSetValue: NSV): $ValOf<$ValOf<$ValOf<V, K2>, K3>, K4> | NSV;
[7] 76│ getIn<NSV, K2: $KeyOf<V>, K3: $KeyOf<$ValOf<V, K2>>, K4: $KeyOf<$ValOf<$ValOf<V, K2>, K3>>, K5: $KeyOf<$ValOf<$ValOf<$ValOf<V, K2>, K3>, K4>>>(keyPath: [K, K2, K3, K4, K5], notSetValue: NSV): $ValOf<$ValOf<$ValOf<$ValOf<V, K2>, K3>, K4>, K5> | NSV;
Error ┈ node_modules/brandcast-next/shared/site-renderer/components/grid/Column.js:23:15
Cannot assign props.width to style.width because property width is missing in object
literal [1].
node_modules/brandcast-next/shared/site-renderer/components/grid/Column.js
20│
21│ if (props.width) {
22│ // $FlowFixMe: how do we add arbitrary values to an object?
23│ style.width = props.width;
24│ }
25│
26│ return {
node_modules/brandcast-next/shared/utils/getRenderedStyle.js
[1] 749│ }, {});
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/brandcast-next/shared/test/data/fetchRootState.js:38:6
Cannot call apolloFetch.mockImplementationOnce because property mockImplementationOnce
is missing in function [1].
node_modules/brandcast-next/shared/test/data/fetchRootState.js
33│ jest.mock('shared/gql/apolloFetch');
34│ // fetchAccountAndUserData calls apolloFetch to get account data
35│ // fetchBootstrapComponents calls apolloFetch to get initial data
36│ apolloFetch
37│ // $FlowFixMe: jest.mock() provides this function
38│ .mockImplementationOnce(() => Promise.resolve(accountDataResponse))
39│ .mockImplementationOnce(() => Promise.resolve(initialDataResponse));
40│
41│ const fetchAccountTask = runSaga(runSagaOptions, fetchAccountAndUserData, { bootstrap: true });
node_modules/brandcast-next/shared/gql/apolloFetch.js
[1] 21│ export default ({ query, variables }: ApolloFetchPayload) =>
22│ apolloFetch({ query: print(query), variables });
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/brandcast-next/shared/test/data/fetchRootState.js:45:17
Cannot call apolloFetch.mockRestore because property mockRestore is missing in
function [1].
node_modules/brandcast-next/shared/test/data/fetchRootState.js
42│
43│ const fetchRootStatePromise = fetchAccountTask.done.then(() => {
44│ // $FlowFixMe: jest.mock() provides this function
45│ apolloFetch.mockRestore();
46│
47│ const resultNodesForSitemap = getResultsFromGQLResponse(
48│ fetchNodesForWebsite,
node_modules/brandcast-next/shared/gql/apolloFetch.js
[1] 21│ export default ({ query, variables }: ApolloFetchPayload) =>
22│ apolloFetch({ query: print(query), variables });
Error ┈┈┈┈ node_modules/brandcast-next/shared/test/data/responses/account-data.js:270:49
Cannot call getResultsFromGQLResponse with response bound to the second parameter
because object type [1] is incompatible with undefined [2] in property data.
node_modules/brandcast-next/shared/test/data/responses/account-data.js
[1] 110│ data: {
111│ account_folders: GQLEdges,
112│ accounts: GQLEdges,
113│ user: Object,
114│ },
:
267│
268│ const website = objectOf(
269│ // $FlowFixMe: Flow doesn’t like that response.data is an object here when it can be undefined
270│ getResultsFromGQLResponse(fetchAccountData, response)[
271│ getQueryFieldNames(fetchAccountData)[0]
272│ ].find((node) => node.type === 'Website'),
273│ );
flow/lib/types.js
[2] 162│ data?: {
163│ [string]: GQLEdges | Object,
164│ },
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/brandcast-next/shared/utils/app-focus.js:43:46
Property contentDocument is missing in HTMLElement [1].
node_modules/brandcast-next/shared/utils/app-focus.js
40│ const stageDoc = getPageIframeDocument();
41│ try {
42│ /* $FlowFixMe: Flow isn't following logic from instanceof check above */
43│ if (stageDoc && stageDoc === doc.activeElement.contentDocument) {
44│ focusApp(allowExistingFocus, stageDoc);
45│ return;
46│ }
/private/tmp/flow/flowlib_233df064/dom.js
[1] 856│ activeElement: HTMLElement | null;
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/brandcast-next/shared/utils/draft-utils.js:222:29
Cannot get block.inlineStyleRanges because property inlineStyleRanges is missing in
mixed [1].
node_modules/brandcast-next/shared/utils/draft-utils.js
219│ export const generateStyleMapFromRaw = (rawState: RawDraftContentState): { [string]: StyleMapValue } =>
220│ rawState
221│ ? arrayOf(rawState.blocks).reduce((generatedStyleMap, block) => {
222│ arrayOf(block.inlineStyleRanges).forEach((styleRange) => {
223│ const style = stringOf(styleRange.style);
224│ generatedStyleMap[style] = transformKeyToStyleMapValue(style);
225│ });
node_modules/brandcast-next/shared/utils/get-of-type.js
[1] 12│ export const arrayOf = (a: mixed, defaultValue?: Array<*> = []): Array<*> =>
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/brandcast-next/shared/utils/draft-utils.js:223:53
Cannot get styleRange.style because property style is missing in mixed [1].
node_modules/brandcast-next/shared/utils/draft-utils.js
220│ rawState
221│ ? arrayOf(rawState.blocks).reduce((generatedStyleMap, block) => {
222│ arrayOf(block.inlineStyleRanges).forEach((styleRange) => {
223│ const style = stringOf(styleRange.style);
224│ generatedStyleMap[style] = transformKeyToStyleMapValue(style);
225│ });
226│ return generatedStyleMap;
node_modules/brandcast-next/shared/utils/get-of-type.js
[1] 12│ export const arrayOf = (a: mixed, defaultValue?: Array<*> = []): Array<*> =>
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
node_modules/brandcast-next/shared/utils/tests/createUniqueNodeProperty.test.js:151:27
Cannot call createUniqueNodeProperty with object literal bound to the first parameter
because array literal [1] has an arity of 2 but StringKeyPath [2] has an arity of 1 in
property propertyPath.
node_modules/brandcast-next/shared/utils/tests/createUniqueNodeProperty.test.js
144│ }),
145│ ]);
146│
147│ expect(createUniqueNodeProperty({
148│ siblings,
149│ // https://github.com/facebook/immutable-js/issues/1409
150│ // $FlowFixMe: Flow/immutable cannot yet handle key paths of any length
[1] 151│ propertyPath: ['content', 'name'],
152│ value: 'I ❤️ the Smell of Napalm in the Morning',
153│ separator: ' ',
154│ })).toBe('I ❤️ the Smell of Napalm in the Morning 3');
155│ });
156│
157│ it('handles option to make it identify counters that begin at 1', () => {
node_modules/brandcast-next/shared/utils/createUniqueNodeProperty.js
[2] 80│ propertyPath?: StringKeyPath,
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
node_modules/brandcast-next/shared/utils/tests/createUniqueNodeProperty.test.js:180:46
Cannot call createUniqueNodeProperty with object literal bound to the first parameter
because null [1] is incompatible with Map [2] in type argument T [3] of property
siblings.
node_modules/brandcast-next/shared/utils/tests/createUniqueNodeProperty.test.js
175│ });
176│
177│ it('handles sibling lists with null or undefined values', () => {
178│ expect(createUniqueNodeProperty({
179│ /* $FlowFixMe: expected error for testing */
[1] 180│ siblings: baseSiblings.insert(1, null),
181│ value: 'about',
182│ })).toBe('about-2');
183│
184│ expect(createUniqueNodeProperty({
185│ /* $FlowFixMe: expected error for testing */
node_modules/brandcast-next/shared/utils/createUniqueNodeProperty.js
[2] 78│ siblings: List<Map<string, mixed>>,
node_modules/immutable/dist/immutable.js.flow
[3] 715│ declare class List<+T> extends IndexedCollection<T> mixins UpdatableInCollection<number, T> {
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
node_modules/brandcast-next/shared/utils/tests/createUniqueNodeProperty.test.js:186:46
Cannot call createUniqueNodeProperty with object literal bound to the first parameter
because undefined [1] is incompatible with Map [2] in type argument T [3] of property
siblings.
node_modules/brandcast-next/shared/utils/tests/createUniqueNodeProperty.test.js
181│ value: 'about',
182│ })).toBe('about-2');
183│
184│ expect(createUniqueNodeProperty({
185│ /* $FlowFixMe: expected error for testing */
[1] 186│ siblings: baseSiblings.insert(0, undefined),
187│ value: 'about',
188│ })).toBe('about-2');
189│ });
190│
191│ describe('supports locale-friendly case sensitivity options', () => {
node_modules/brandcast-next/shared/utils/createUniqueNodeProperty.js
[2] 78│ siblings: List<Map<string, mixed>>,
node_modules/immutable/dist/immutable.js.flow
[3] 715│ declare class List<+T> extends IndexedCollection<T> mixins UpdatableInCollection<number, T> {
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/brandcast-next/site-server/app/renderPage.js:33:25
Cannot resolve module purify-css.
30│ let minify = (x, y) => x;
31│ let purifyCSS = (x, y, z) => y;
32│ if (!process.env.DOCKER) {
33│ purifyCSS = require('purify-css');
34│ minify = require('html-minifier').minify;
35│ }
36│
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/brandcast-next/site-server/app/renderPage.js:440:80
Cannot get interaction.action because property action is missing in mixed [1].
node_modules/brandcast-next/site-server/app/renderPage.js
437│ const triggers = getTriggers(nodes);
438│ const triggerValues = Object.values(triggers);
439│ const hasIntersectionObserver = triggerValues.some((interactions) =>
440│ arrayOf(interactions).some((interaction) => interaction && interaction.action === 'inView'),
441│ );
442│ const galleryImageIds = getGalleryImages(nodes);
443│ const integrationIds = websiteContent.integration_ids || [];
node_modules/brandcast-next/shared/utils/get-of-type.js
[1] 12│ export const arrayOf = (a: mixed, defaultValue?: Array<*> = []): Array<*> =>
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
node_modules/brandcast-next/studio/app/components/page-component/components/gallery/Gallery.js:41:57
Cannot call renderChildren with object literal bound to props because:
• property idPath is missing in object literal [1] but exists in
RenderChildrenProps [2].
• property isPagePreview is missing in object literal [1] but exists in
RenderChildrenProps [2].
• property isPreviewMode is missing in object literal [1] but exists in
RenderChildrenProps [2].
• property isSelectedSiteTree is missing in object literal [1] but exists in
RenderChildrenProps [2].
• property isSelectionTarget is missing in object literal [1] but exists in
RenderChildrenProps [2].
• property node is missing in object literal [1] but exists in
RenderChildrenProps [2].
• property pageId is missing in object literal [1] but exists in
RenderChildrenProps [2].
• property path is missing in object literal [1] but exists in
RenderChildrenProps [2].
• property styleSheetId is missing in object literal [1] but exists in
RenderChildrenProps [2].
• property treeNode is missing in object literal [1] but exists in
RenderChildrenProps [2].
• property websiteId is missing in object literal [1] but exists in
RenderChildrenProps [2].
node_modules/brandcast-next/studio/app/components/page-component/components/gallery/Gallery.js
38│
39│ const treeNodeChildren = treeNode.getIn(['content', 'children']);
40│
[1] 41│ return renderChildren(StudioPageComponentContainer, {
42│ ...props,
43│ },
44│ treeNodeChildren.size ? treeNodeChildren : placeholderChildren
45│ );
46│ };
node_modules/brandcast-next/shared/utils/siteRendererUtils.js
[2] 388│ props: RenderChildrenProps,
Error ┈┈┈┈┈ node_modules/brandcast-next/studio/app/components/pay-wall/PayWall.js:127:45
Cannot get this[eventName] because an indexer property is missing in PayWall [1].
[1] 34│ export default class PayWall extends React.Component<Props, State> {
:
124│ if (typeof componentProps[eventName] === 'function') {
125│ hasHandler = true;
126│ // $FlowFixMe Flow complains about Indexable signature not found
127│ componentProps[eventName] = this[eventName];
128│ }
129│ });
130│ if (!hasHandler) {
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/brandcast-next/studio/app/index.js:21:8
Cannot resolve module whatwg-fetch.
18│ import configureStore from './store/configureStore';
19│
20│ // Import fetch polyfill
21│ import 'whatwg-fetch';
22│
23│ // Use django-compatible slugify mode across the app
24│ slugify.defaults.modes.brandcast = {
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ src/components/Drawers/EditorDrawer.jsx:46:53
Cannot call this.props.content.map with this.renderElement bound to callbackfn because
object type [1] is incompatible with mixed [2] in the first argument.
src/components/Drawers/EditorDrawer.jsx
[1] 22│ renderElement = (item: Object, index: number) => {
:
43│ <div className="editor-content">
44│ <EditorToolbar />
45│ <div className="editor-elements-wrapper">
46│ {this.props.content.map(this.renderElement)}
47│ {pickerArray.map((i) => (
48│ <ElementProductContainer key={i} selectedProductIndex={i} />
49│ ))}
node_modules/brandcast-next/shared/utils/get-of-type.js
[2] 12│ export const arrayOf = (a: mixed, defaultValue?: Array<*> = []): Array<*> =>
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ src/components/Loaders/LoaderA.jsx:15:20
Property className is missing in Props [1].
12│ // progress?: number,
13│ };
14│
[1] 15│ const LoaderA = ({ className, isLoading, isNodeLoading, progress }: Props) => (
16│ <div
17│ className={classNames('loader-container', className, {
18│ loading: typeof isNodeLoading === 'boolean' ? isNodeLoading : isLoading,
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ src/components/Loaders/LoaderA.jsx:15:31
Property isLoading is missing in Props [1].
12│ // progress?: number,
13│ };
14│
[1] 15│ const LoaderA = ({ className, isLoading, isNodeLoading, progress }: Props) => (
16│ <div
17│ className={classNames('loader-container', className, {
18│ loading: typeof isNodeLoading === 'boolean' ? isNodeLoading : isLoading,
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ src/components/Loaders/LoaderA.jsx:15:42
Property isNodeLoading is missing in Props [1].
12│ // progress?: number,
13│ };
14│
[1] 15│ const LoaderA = ({ className, isLoading, isNodeLoading, progress }: Props) => (
16│ <div
17│ className={classNames('loader-container', className, {
18│ loading: typeof isNodeLoading === 'boolean' ? isNodeLoading : isLoading,
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ src/components/Loaders/LoaderA.jsx:15:57
Property progress is missing in Props [1].
12│ // progress?: number,
13│ };
14│
[1] 15│ const LoaderA = ({ className, isLoading, isNodeLoading, progress }: Props) => (
16│ <div
17│ className={classNames('loader-container', className, {
18│ loading: typeof isNodeLoading === 'boolean' ? isNodeLoading : isLoading,
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ src/components/ProductSelector/ProductSelector.jsx:32:55
Cannot get product.id because property id is missing in mixed [1].
src/components/ProductSelector/ProductSelector.jsx
29│ </div>
30│ </div>
31│ <div className="item-container">
32│ {products.filter((product) => product.id !== null).map((product) => (
33│ <ProductItem key={product.id} product={product} />
34│ ))}
35│ </div>
node_modules/brandcast-next/shared/utils/get-of-type.js
[1] 12│ export const arrayOf = (a: mixed, defaultValue?: Array<*> = []): Array<*> =>
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ src/components/ProductSelector/ProductSelector.jsx:33:47
Cannot get product.id because property id is missing in mixed [1].
src/components/ProductSelector/ProductSelector.jsx
30│ </div>
31│ <div className="item-container">
32│ {products.filter((product) => product.id !== null).map((product) => (
33│ <ProductItem key={product.id} product={product} />
34│ ))}
35│ </div>
36│ </div>
node_modules/brandcast-next/shared/utils/get-of-type.js
[1] 12│ export const arrayOf = (a: mixed, defaultValue?: Array<*> = []): Array<*> =>
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ src/containers/ElementProductContainer.js:17:38
Cannot get item.id because property id is missing in mixed [1].
src/containers/ElementProductContainer.js
14│ const products = arrayOf(state.getIn(['productData', 'data']));
15│ const productInfo = objectOf(selectedProductList[selectedProductIndex]);
16│ const { name, description, id, url, imageURL } = objectOf(
17│ products.find((item) => item.id === productInfo.product_id),
18│ );
19│ return {
20│ comments: productInfo.comments,
node_modules/brandcast-next/shared/utils/get-of-type.js
[1] 12│ export const arrayOf = (a: mixed, defaultValue?: Array<*> = []): Array<*> =>
Found 44 errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment