Introduction
create-react-app makes it easy to quickly get started with React. Firebase makes it easy to quickly get started with web de...
For further actions, you may consider blocking this person and/or reporting abuse
I was running into issues when setting up proxy (in src/setupProxy.js). I went through the changelog for http-proxy-middleware and found that require/import of http-proxy-middleware is now explicit.
So please try
const { createProxyMiddleware } = require('http-proxy-middleware');
instead ofconst proxy = require('http-proxy-middleware');
to fix this.You basically need to do this now
Hope this helps :)
Quick question regarding the http proxy. Why do we need that? The project seems to work fine locally without it.
The proxy will forward requests for firebase scripts to the firebase emulator. Without it, unless you load firebase some other way, firebase will not function
Very helpful! 🙌
About typescript, it doesn't work for me.
I ended up using this workaround github.com/microsoft/TypeScript/is...