Closed ay13 closed 2 months ago
Hi @ay13, I’ve been through those exact steps and the project still runs the same as ever. Exact steps as yours. Thinking of possible issues, it could be the Node version you’re using? See https://github.com/nodejs/node/issues/40537
Django’s development server only serves on IPv4 I believe, while Node will be resolving localhost
to an IPv6 address.
If this is the possible culprit, try on a recent Node version and see what happens? You can also export TEST_ORIGIN=http://127.0.0.1:8001
to force Node querying the IPv4 address.
Describe the bug
When I start this project to demo its capabilities, it does not proxy the rendered markup into storybook.
I have the Django project running and the storybook running.
Environment
Mac Sonoma Python 3.9.18
Steps to reproduce
(Write your steps here:)
python -m venv --prompt sb .venv
source .venv/bin/activate
pip install -r requirements.txt
npm install
python manage.py runserver 0:8001
npm run start
Expected behavior
I expected to be able to navigate the Storybook and see the components
Actual behavior
I receive this error in Storybook
Error occurred while trying to proxy: localhost:6006/pattern-library/api/v1/render-pattern