We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm facing this error, I have the same webpack config as in your readme file.
Error: HtmlWebpackPrerenderPlugin ERROR: Error rendering component. TypeError: app.default is not a function
My index.js
import React from 'react'; import ReactDOM from 'react-dom'; import ReactDOMServer from 'react-dom/server'; import MyComponent from '../../pages/index'; const App = () => <h1>Hello world!</h1>; if (document.body) { const div = document.getElementById('root'); if (div.hasChildNodes()) { ReactDOM.hydrate(<MyComponent />, div); } else { ReactDOM.render(<MyComponent />, div); } } export default () => ReactDOMServer.renderToString(<App />);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm facing this error, I have the same webpack config as in your readme file.
My index.js
The text was updated successfully, but these errors were encountered: