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
No preview when using custom renderer with --root-dir=
...
#1633
Comments
--root-dir=
...
Hi @atrofimov-sc, sorry for all the confusion, I guess the custom bundler guide could be improved but there are so many variations in user setup and this is not a trivial task. The easiest thing to get past this step is if you provided a public repo that reproduces your setup (and the issues you are facing). I'll be able to clone it and tell you exactly what's missing. Let me know if you can provide this, thanks! |
I'll try to do a repro, but time is hard to come by right now. I'll say I'm still able to use the product by specifying |
@atrofimov-sc Did you try setting https://reactcosmos.org/docs/configuration/cosmos-config#config-options |
Yes I have. I'm sorry for still not having done a repro, but the full command was |
If for whatever reason you prefer passing those options via CLI args you can also pass a path to |
What's wrong?
When I use a custom renderer, I see nothing except a message saying it connected. It talks to a window that's in another tab via post-message, but doesn't have an iframe to talk to it!!
Steps to reproduce
Followed custom renderer tutorial. The only thing I changed was adding
--root-dir=src/dev
because by typescript rules, all*.ts
files have to be under root, and the root issrc
, and I don't want the fixture to be bundled, so it's insrc/dev
folder. But that breaks the UI!Screenshots
Useful info
Cosmos version. - latest
Cosmos config.
Empty
Additional context
N/A
I think it's supposed to open a iframe, but there aren't any iframe at all in the cosmos UI.
The text was updated successfully, but these errors were encountered: