Skip to content

Instantly share code, notes, and snippets.

@miwillhite
Created March 12, 2018 15:38
Show Gist options
  • Save miwillhite/04ac6ccf9abf9bac3ec398e7512adf20 to your computer and use it in GitHub Desktop.
Save miwillhite/04ac6ccf9abf9bac3ec398e7512adf20 to your computer and use it in GitHub Desktop.
TypeError: Cannot read property 'forEach' of undefined
Node {
type: 'BlockStatement',
start: 1059,
end: 1171,
loc:
SourceLocation {
start: Position { line: 32, column: 50 },
end: Position { line: 40, column: 1 } },
range: [ 1059, 1171 ],
body:
[ Node {
type: 'ReturnStatement',
start: 1063,
end: 1169,
loc: [Object],
range: [Array],
argument: [Object],
parent: [Circular] } ],
parent:
Node {
type: 'FunctionExpression',
start: 1035,
end: 1171,
loc: SourceLocation { start: [Object], end: [Object] },
range: [ 1035, 1171 ],
id:
Node {
type: 'Identifier',
start: 1044,
end: 1055,
loc: [Object],
range: [Array],
name: 'Breadcrumbs',
parent: [Circular] },
generator: false,
expression: false,
async: false,
params: [],
body: [Circular],
parent:
Node {
type: 'CallExpression',
start: 975,
end: 1172,
loc: [Object],
range: [Array],
callee: [Object],
arguments: [Array],
parent: [Object] } } }
Node {
type: 'BlockStatement',
start: 224,
end: 639,
loc:
SourceLocation {
start: Position { line: 10, column: 24 },
end: Position { line: 27, column: 1 } },
range: [ 224, 639 ],
body:
[ Node {
type: 'ExpressionStatement',
start: 228,
end: 262,
loc: [Object],
range: [Array],
expression: [Object],
parent: [Circular] },
Node {
type: 'ReturnStatement',
start: 265,
end: 637,
loc: [Object],
range: [Array],
argument: [Object],
parent: [Circular] } ],
parent:
Node {
type: 'FunctionDeclaration',
start: 200,
end: 639,
loc: SourceLocation { start: [Object], end: [Object] },
range: [ 200, 639 ],
id:
Node {
type: 'Identifier',
start: 209,
end: 217,
loc: [Object],
range: [Array],
name: 'embedSrc',
parent: [Circular] },
generator: false,
expression: false,
async: false,
params: [ [Object] ],
body: [Circular],
parent:
Node {
type: 'Program',
start: 0,
end: 639,
loc: [Object],
range: [Array],
body: [Array],
sourceType: 'module',
comments: [Array],
tokens: [Array],
parent: null } } }
Node {
type: 'BlockStatement',
start: 626,
end: 1692,
loc:
SourceLocation {
start: Position { line: 28, column: 65 },
end: Position { line: 59, column: 1 } },
range: [ 626, 1692 ],
body:
[ Node {
type: 'ReturnStatement',
start: 630,
end: 1690,
loc: [Object],
range: [Array],
argument: [Object],
parent: [Circular] } ],
parent:
Node {
type: 'FunctionExpression',
start: 590,
end: 1692,
loc: SourceLocation { start: [Object], end: [Object] },
range: [ 590, 1692 ],
id:
Node {
type: 'Identifier',
start: 599,
end: 622,
loc: [Object],
range: [Array],
name: 'remoteDataCataDirective',
parent: [Circular] },
generator: false,
expression: false,
async: false,
params: [],
body: [Circular],
parent:
Node {
type: 'CallExpression',
start: 520,
end: 1693,
loc: [Object],
range: [Array],
callee: [Object],
arguments: [Array],
parent: [Object] } } }
Node {
type: 'BlockStatement',
start: 1749,
end: 2088,
loc:
SourceLocation {
start: Position { line: 60, column: 55 },
end: Position { line: 74, column: 1 } },
range: [ 1749, 2088 ],
body:
[ Node {
type: 'ReturnStatement',
start: 1753,
end: 2086,
loc: [Object],
range: [Array],
argument: [Object],
parent: [Circular] } ],
parent:
Node {
type: 'FunctionExpression',
start: 1718,
end: 2088,
loc: SourceLocation { start: [Object], end: [Object] },
range: [ 1718, 2088 ],
id:
Node {
type: 'Identifier',
start: 1727,
end: 1745,
loc: [Object],
range: [Array],
name: 'isInitialDirective',
parent: [Circular] },
generator: false,
expression: false,
async: false,
params: [],
body: [Circular],
parent:
Node {
type: 'CallExpression',
start: 520,
end: 2089,
loc: [Object],
range: [Array],
callee: [Object],
arguments: [Array],
parent: [Object] } } }
Node {
type: 'BlockStatement',
start: 2145,
end: 2483,
loc:
SourceLocation {
start: Position { line: 75, column: 55 },
end: Position { line: 89, column: 1 } },
range: [ 2145, 2483 ],
body:
[ Node {
type: 'ReturnStatement',
start: 2149,
end: 2481,
loc: [Object],
range: [Array],
argument: [Object],
parent: [Circular] } ],
parent:
Node {
type: 'FunctionExpression',
start: 2114,
end: 2483,
loc: SourceLocation { start: [Object], end: [Object] },
range: [ 2114, 2483 ],
id:
Node {
type: 'Identifier',
start: 2123,
end: 2141,
loc: [Object],
range: [Array],
name: 'isLoadingDirective',
parent: [Circular] },
generator: false,
expression: false,
async: false,
params: [],
body: [Circular],
parent:
Node {
type: 'CallExpression',
start: 520,
end: 2484,
loc: [Object],
range: [Array],
callee: [Object],
arguments: [Array],
parent: [Object] } } }
Node {
type: 'BlockStatement',
start: 2540,
end: 2878,
loc:
SourceLocation {
start: Position { line: 90, column: 55 },
end: Position { line: 104, column: 1 } },
range: [ 2540, 2878 ],
body:
[ Node {
type: 'ReturnStatement',
start: 2544,
end: 2876,
loc: [Object],
range: [Array],
argument: [Object],
parent: [Circular] } ],
parent:
Node {
type: 'FunctionExpression',
start: 2509,
end: 2878,
loc: SourceLocation { start: [Object], end: [Object] },
range: [ 2509, 2878 ],
id:
Node {
type: 'Identifier',
start: 2518,
end: 2536,
loc: [Object],
range: [Array],
name: 'isFailureDirective',
parent: [Circular] },
generator: false,
expression: false,
async: false,
params: [],
body: [Circular],
parent:
Node {
type: 'CallExpression',
start: 520,
end: 2879,
loc: [Object],
range: [Array],
callee: [Object],
arguments: [Array],
parent: [Object] } } }
Node {
type: 'BlockStatement',
start: 2935,
end: 3273,
loc:
SourceLocation {
start: Position { line: 105, column: 55 },
end: Position { line: 119, column: 1 } },
range: [ 2935, 3273 ],
body:
[ Node {
type: 'ReturnStatement',
start: 2939,
end: 3271,
loc: [Object],
range: [Array],
argument: [Object],
parent: [Circular] } ],
parent:
Node {
type: 'FunctionExpression',
start: 2904,
end: 3273,
loc: SourceLocation { start: [Object], end: [Object] },
range: [ 2904, 3273 ],
id:
Node {
type: 'Identifier',
start: 2913,
end: 2931,
loc: [Object],
range: [Array],
name: 'isSuccessDirective',
parent: [Circular] },
generator: false,
expression: false,
async: false,
params: [],
body: [Circular],
parent:
Node {
type: 'CallExpression',
start: 520,
end: 3274,
loc: [Object],
range: [Array],
callee: [Object],
arguments: [Array],
parent: [Object] } } }
Node {
type: 'ObjectExpression',
start: 250,
end: 305,
loc:
SourceLocation {
start: Position { line: 11, column: 3 },
end: Position { line: 15, column: 3 } },
range: [ 250, 305 ],
properties:
[ Node {
type: 'Property',
start: 256,
end: 264,
loc: [Object],
range: [Array],
method: false,
shorthand: true,
computed: false,
key: [Object],
kind: 'init',
value: [Object],
parent: [Circular] },
Node {
type: 'Property',
start: 270,
end: 283,
loc: [Object],
range: [Array],
method: false,
shorthand: false,
computed: false,
key: [Object],
value: [Object],
kind: 'init',
parent: [Circular] },
Node {
type: 'Property',
start: 289,
end: 300,
loc: [Object],
range: [Array],
method: false,
shorthand: false,
computed: false,
key: [Object],
value: [Object],
kind: 'init',
parent: [Circular] } ],
parent:
Node {
type: 'ArrowFunctionExpression',
start: 241,
end: 306,
loc: SourceLocation { start: [Object], end: [Object] },
range: [ 241, 306 ],
id: null,
generator: false,
expression: true,
async: false,
params: [],
body: [Circular],
parent:
Node {
type: 'CallExpression',
start: 135,
end: 308,
loc: [Object],
range: [Array],
callee: [Object],
arguments: [Array],
parent: [Object] } } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment