- Notifications
You must be signed in to change notification settings - Fork 489
Closed
Description
documentation.js version: 12.3.0
command:
documentation build ./wp-content/plugins/mapsvg-dev/js/mapsvg/Map/Map.ts --parse-extension ts -f html -o ./docs/api-v6 --theme ./documentation-theme-light/ --sort-order alpha
Result:
SyntaxError: Unexpected token, expected "}" (305:30) at _class.raise (/usr/local/lib/node_modules/documentation/node_modules/@babel/parser/lib/index.js:3939:15) at _class.unexpected (/usr/local/lib/node_modules/documentation/node_modules/@babel/parser/lib/index.js:5248:16) at _class.expect (/usr/local/lib/node_modules/documentation/node_modules/@babel/parser/lib/index.js:5236:28) at _class.jsxParseExpressionContainer (/usr/local/lib/node_modules/documentation/node_modules/@babel/parser/lib/index.js:3497:12) at _class.jsxParseElementAt (/usr/local/lib/node_modules/documentation/node_modules/@babel/parser/lib/index.js:3584:36) at _class.jsxParseElement (/usr/local/lib/node_modules/documentation/node_modules/@babel/parser/lib/index.js:3626:19) at _class.parseExprAtom (/usr/local/lib/node_modules/documentation/node_modules/@babel/parser/lib/index.js:3633:21) at _class.parseExprSubscripts (/usr/local/lib/node_modules/documentation/node_modules/@babel/parser/lib/index.js:5924:21) at _class.parseMaybeUnary (/usr/local/lib/node_modules/documentation/node_modules/@babel/parser/lib/index.js:5903:21) at _class.parseMaybeUnary (/usr/local/lib/node_modules/documentation/node_modules/@babel/parser/lib/index.js:10244:54)
The code at line 305 in Map.ts:
this.editRegions = {on:false};
The error points to column number 30 which is the letter "o" after "{". Somehow babel doesn't like the on:false
content and wants to see an empty object instead: {}
. Why?
The editRegions
property is defined above in the same file as:
editRegions: {on: boolean};
Metadata
Metadata
Assignees
Labels
No labels