How to resolve the error on ‘react-native start’

I just got a similar error for the first time today. It appears in \node_modules\metro-config\src\defaults\blacklist.js, there is an invalid regular expression that needed changed. I changed the first expression under sharedBlacklist from: var sharedBlacklist = [ /node_modules[/\\]react[/\\]dist[/\\].*/, /website\/node_modules\/.*/, /heapCapture\/bundle\.js/, /.*\/__tests__\/.*/ ]; to: var sharedBlacklist = [ /node_modules[\/\\]react[\/\\]dist[\/\\].*/, /website\/node_modules\/.*/, /heapCapture\/bundle\.js/, /.*\/__tests__\/.*/ ];

Setting text color, outline, and padding on Material-ui Autocomplete component

Here is the approach you tried (which worked as far as styling, but broke the Autocomplete functionality): renderInput={params => ( <TextField {…params} label=”” InputProps={{ className: classes.inputColor }} variant=”outlined” fullWidth /> )} The above approach causes problems because the Autocomplete component passes InputProps as part of the params passed to TextField so the InputProps passed explicitly … Read more

deploying create-react-app to heroku with express backend returns invalid host header in browser

Looks like they changed how the create-react-app utilizes a proxy. Remove the proxy from the package.json. Then… Add this package: npm i -S http-proxy-middleware Then create a setupProxy.js in src: src/setupProxy.js const proxy = require(“http-proxy-middleware”); module.exports = app => { app.use(proxy(“/api/*”, { target: “http://localhost:5000/” })); }; Now from inside the React component, you can do … Read more