question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

react-snapshot crawl fails

See original GitHub issue

console error below.

Pushstate server started on port 2999

🕷   Starting crawling http://localhost:2999
TypeError: Parameter "url" must be a string, not object
    at Url.parse (url.js:81:11)
    at urlParse (url.js:75:5)
    at Url.resolve (url.js:646:29)
    at Object.urlResolve [as resolve] (url.js:642:40)
    at .../node_modules/react-snapshot/lib/Crawler.js:96:44
    at Array.forEach (native)
    at .../node_modules/react-snapshot/lib/Crawler.js:88:83
    at Array.forEach (native)
    at Crawler.extractNewLinks (.../node_modules/react-snapshot/lib/Crawler.js:86:36)
    at .../node_modules/react-snapshot/lib/Crawler.js:68:15

on now.sh i get this error:

at Url.parse (url.js:95:11)
>     at urlParse (url.js:89:5)
>     at Url.resolve (url.js:657:29)
>     at Object.urlResolve [as resolve] (url.js:653:40)
>     at /home/nowuser/src/node_modules/react-snapshot/lib/Crawler.js:96:44
>     at Array.forEach (native)
>     at /home/nowuser/src/node_modules/react-snapshot/lib/Crawler.js:88:83
>     at Array.forEach (native)
>     at Crawler.extractNewLinks (/home/nowuser/src/node_modules/react-snapshot/lib/Crawler.js:86:36)
>     at /home/nowuser/src/node_modules/react-snapshot/lib/Crawler.js:68:15

anyone got into this? not sure what to try next

thanks

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
cezarneagacommented, Mar 22, 2017

on further investigating, it seems it cannot work if you have anchors as links

0reactions
geelencommented, May 24, 2017

Can you please try again with v1.1.0 released last night?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crawl failing with syntax error #16 - geelen/react-snapshot
I figured out that this problem has to do with the "homepage" field in the package.json file. If the field is not present,...
Read more >
react-snapshot - npm
React -snapshot will crawl all links that it finds. You can create "site map" page, which will contain links to all pages. We...
Read more >
Browser not Defined error in Jest-Image-Snapshot Testing in ...
I want to implement https://github.com/americanexpress/jest-image-snapshot#-api in my React application and tried writing one of the test ...
Read more >
react-snapshot - Bountysource
I have a create-react-app set up with react-snapshot. When i use react-loadable to split the bundles upon routes, the pages are not getting...
Read more >
React Snapshot Testing: The Bad Parts | by Nick Gard - Medium
Ok, you take the time to read the snapshot test failure output. After all, it's human-readable and should look like a diff between...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found