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

ERROR 404 with a different distDir in next.config.js and Firestore #3634

Closed
sarovin opened this issue Jan 30, 2018 · 2 comments
Closed

ERROR 404 with a different distDir in next.config.js and Firestore #3634

sarovin opened this issue Jan 30, 2018 · 2 comments

Comments

@sarovin
Copy link
Contributor

sarovin commented Jan 30, 2018

Hi,
I want create a web app with redux-saga and firestore.
I have created a repo based on with-firebase-hosting here => https://github.com/Bolket/next-firebase-functions/tree/withSaga.

My next.config.js

module.exports = { distDir: '../../build/functions/next' };

If i remove next.config.js it works fine but with a different distDir I have this message in console => Warning: Expected server HTML to contain a matching <h1> in <div>. and the server send a 404 error.

bug

Steps to Reproduce (for bugs)

  1. Clone this repo => https://github.com/Bolket/next-firebase-functions/tree/withSaga
  2. yarn
  3. yarn next

Your Environment

Tech Version
next 4.4.0-canary.3
node 8.9.3
OS MacOS
browser Chrome 63.0.3239.132
@sarovin
Copy link
Contributor Author

sarovin commented Jan 30, 2018

It works also by removing import '@firebase/firestore'; 😕 but it's important for me...

@sarovin
Copy link
Contributor Author

sarovin commented Jan 31, 2018

I think that the problem is this => firebase/firebase-js-sdk#221
I have solved by updating firebase...

@sarovin sarovin closed this as completed Jan 31, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jan 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant