react-snapshot crawl fails
See original GitHub issueconsole 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:
- Created 6 years ago
- Comments:8 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
on further investigating, it seems it cannot work if you have anchors as links
Can you please try again with
v1.1.0
released last night?