Skip to content
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

Did not expect server HTML to contain a <nav> in <div> #199

Closed
pisacode opened this issue Aug 4, 2018 · 3 comments
Closed

Did not expect server HTML to contain a <nav> in <div> #199

pisacode opened this issue Aug 4, 2018 · 3 comments
Assignees
Labels

Comments

@pisacode
Copy link

pisacode commented Aug 4, 2018

I am having this issue when hydrate runs at start-up. It normally resolves when you eliminate whitespace in rendering node. However I couldn't fixed it with the solutions mentioned in here

Any idea to fix it?

@cleverbeagle
Copy link
Owner

Hey @pisacode can you screenshot/paste the exact error you're getting?

@cleverbeagle cleverbeagle self-assigned this Aug 6, 2018
@pisacode
Copy link
Author

pisacode commented Aug 7, 2018

Sure,

This is the error message:
screen shot 2018-08-07 at 10 13 21 am

This is where it is originated:
Meteor.startup(() => hydrate(<ThemeProvider theme={theme}> <Provider store={store}> <BrowserRouter> <Switch> <App /> </Switch> </BrowserRouter> </Provider> </ThemeProvider>, document.getElementById('react-root')));

And the only place that has a nav under div is the AuthenticatedNavigation.js component

@sayjeyhi
Copy link

In my case it was because of using PersistGate and react-loadable. if you using this libraries, you could use preloadAll instead of preloadReady

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants