-
Notifications
You must be signed in to change notification settings - Fork 21
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
route specific components are not rendering in a react app #74
Comments
Nutria's http server is a static server, it doesn´t do any transformation on the content. So your react build system is responsible to produce the html content. |
@fabricedesre I think it's the server that is trying to send a text/html mime type for the route instead a react component. |
What is the content of the file? What is being displayed? |
The route specific react components are of JSX |
is your app loading properly if you use another static http server and a web browser? (eg. |
@fabricedesre the HTML file and bundle JS script file are loading fine. It's just the route specific components that are not rendering. I just raised the issue ( remix-run/react-router#11333 ) with the. react router team as well. Let's wait for their thoughts as well. |
@fabricedesre I was suggested to use the right combination of start_url in webmanifest and basename property ( https://reactrouter.com/en/main/routers/create-browser-router#basename ) in react couter |
For react apps the route specific components are not rendering. Seems like as the URL changes in the URL bar, the nutria system is trying to render a HTML file instead of react component. I tried the below react rotuer config but the component doesn't render.
The text was updated successfully, but these errors were encountered: