Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

TypeError: _this7._config.server.rewriteRequestUrl is not a function React native 0.64.1

$
0
0

I have followed all the instruction given at this upgrade helper for upgrading RNv0.62 to v0.64.1 and my app is getting installed successfully in the device but my metro bundler is failing with some random error which I am unable to figure out at all.

Whenever I try to run my packager it throws this error TypeError: _this7._config.server.rewriteRequestUrl is not a function at node_modules/metro/src/Server.js:1011:39if anyone can help me what exactly should I do to debug this.

To understand the difference what I did that I logged _this7._config.server object in console for my project and a working 0.64.1 project,obviously both of them are different.

my _this7._config.server after update process

{  useGlobalHotkey: true,  port: 8081,  enableVisualizer: false,  enhanceMiddleware: [Function (anonymous)],  runInspectorProxy: true,  verifyConnections: false}

other _this7._config.server for 0.64.1 which is working

{  useGlobalHotkey: true,  port: 8081,  enhanceMiddleware: [Function (anonymous)],  rewriteRequestUrl: [Function: rewriteRequestUrl],  runInspectorProxy: true,  verifyConnections: false}

I am not able to figure out what exactly going wrong,due to both are different


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>