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
[BUG] Unable to setup front end for consumer due to js error #46
Comments
Thanks Jithin. It should be fairly ease to resolve, my guess is we haven't pinned a react dependency. If you could try a |
See also pact-foundation/pact-workshop-js#3 |
Actually, I think the issue here is that you don't have your provider running and the react warning is just that. The canonical provider is https://github.com/pactflow/example-provider but you can mix and match many (see https://docs.pactflow.io/docs/examples/). |
I can't reproduce with those instructions. I can see the bug report is |
What happens if you open in another browser? I've noticed sometimes Chrome will redirect to Can you please take a full HAR trace:
Please paste the HAR here. Feel free to also take a short video (command+shift+5) and upload. |
Thanks for that. I can see the problem - it’s trying to send requests to localhost:3001. The example is actually part of this workshop, and one of the steps describes how to configure it to point at the locally running provider: https://docs.pactflow.io/docs/workshops/ci-cd/set-up-local-development/run-the-applications I'm not sure why it doesn't use the default, but likely there was a good reason. I’ll update the README so people coming from a different source will know what to do (or I'll update the api.js file to change the default if it makes sense). Hope this helps! I'll leave it open so you can confirm. |
thanks, this works, probabaly good to update readme |
Have updated the readme. Note, there was already a |
Issue: [BUG] Unable to setup front end for consumer due to js error
Steps to Repo
Clone repo to local and set up the consumer using npm install and npm start
Platform: Windows
User gets and error : Failed prop type: Invalid prop
children
of typearray
supplied toLayout
, expected a single ReactElement typeThe text was updated successfully, but these errors were encountered: