Parsing error when "new Crawler()" is not called on line 1 of the crawler editor #2190
Labels
crawler
issue related to the indexing
Needs investigation
Investigation is planned but not started yet
Description
When
new Crawler({...})
is not on line 1 of the editor, there is a configuration error sayingCrawler is not defined
. Should this be happening?In this picture, if I remove the new line above
new Crawler(...)
then the parsing error goes away.Some background:
pathsToMatch
property. For some of our URLs, the records getting returned are too large and so we want to have a separate action for these URLs, as shown in this github issue comment: Extractors returned too many records #1658 (comment)Crawler
and use the variable inpathsToMatch
like in the above issue commentSteps to reproduce
new Crawler({...})
Configuration Error
tab appears on the right side, saying that there is a parsing error and thatCrawler is not defined
Expected behavior
Since the editor is for editing the script, I would expect there to be no parsing error based on where the new Crawler is defined.
Environment
The text was updated successfully, but these errors were encountered: