Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abort with "RangeError: Maximum call stack size exceeded" #60

Closed
jensolafkoch opened this issue Feb 5, 2022 · 2 comments
Closed

Abort with "RangeError: Maximum call stack size exceeded" #60

jensolafkoch opened this issue Feb 5, 2022 · 2 comments

Comments

@jensolafkoch
Copy link

When I run the crawler I now get the following error:

⏳  Processing /components/application-ui/data-display/calendars...
⏱   233ms (200) https://tailwindui.com/components/application-ui/data-display/calendars
🔍  Found 8 components
📝  Writing html small_with_meetings.html
📝  Writing react small_with_meetings.jsx
📝  Writing vue small_with_meetings.vue
📝  Writing alpine small_with_meetings.html
📝  Writing html month_view.html
📝  Writing react month_view.jsx
📝  Writing vue month_view.vue
📝  Writing alpine month_view.html
📝  Writing html week_view.html
📝  Writing react week_view.jsx
📝  Writing vue week_view.vue
‼️   RangeError: Maximum call stack size exceeded
    at LoadedCheerio.Cheerio (D:\dev\utils\tailwindui-crawler-local\node_modules\cheerio\lib\cheerio.js:24:21)
    at new LoadedCheerio (D:\dev\utils\tailwindui-crawler-local\node_modules\cheerio\lib\load.js:32:46)
    at LoadedCheerio.Cheerio (D:\dev\utils\tailwindui-crawler-local\node_modules\cheerio\lib\cheerio.js:35:26)
    at new LoadedCheerio (D:\dev\utils\tailwindui-crawler-local\node_modules\cheerio\lib\load.js:32:46)
    at LoadedCheerio.Cheerio._make (D:\dev\utils\tailwindui-crawler-local\node_modules\cheerio\lib\cheerio.js:93:23)
    at LoadedCheerio.children (D:\dev\utils\tailwindui-crawler-local\node_modules\cheerio\lib\api\traversing.js:78:25)
    at findFirstElementWithClass (D:\dev\utils\tailwindui-crawler-local\index.js:146:42)
    at findFirstElementWithClass (D:\dev\utils\tailwindui-crawler-local\index.js:146:10)
    at findFirstElementWithClass (D:\dev\utils\tailwindui-crawler-local\index.js:146:10)
    at findFirstElementWithClass (D:\dev\utils\tailwindui-crawler-local\index.js:146:10)

Is there anything I can do here?

@kiliman
Copy link
Owner

kiliman commented Feb 5, 2022

I have it running automatically every day via GitHub actions so I didn't notice this error.

There must be something in this component file that the HTML parser doesn't like. I'll take a look at it. Thanks for the heads up.

@VIEWVIEWVIEW
Copy link

Seems to happen due to alpine for the calendar. When I'm only saving react/vue it works fine :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants