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

Metro Builder: SyntaxError: Unexpected token = after upgrading to React Native 0.65.1

$
0
0

Today I updated to React Native Version 0.65.1.After that I was unable to Start the Metro Server

I am now receiving following error message while building a Release .apk:

    node_modules/metro/src/Server.js:350  processRequest = (req, res, next) => {                 ^SyntaxError: Unexpected token =    at new Script (vm.js:80:7)    at createScript (vm.js:274:10)    at Object.runInThisContext (vm.js:326:10)    at Module._compile (internal/modules/cjs/loader.js:664:28)    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)    at Module.load (internal/modules/cjs/loader.js:600:32)    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)    at Function.Module._load (internal/modules/cjs/loader.js:531:3)    at Module.require (internal/modules/cjs/loader.js:637:17)    at require (internal/modules/cjs/helpers.js:22:18)info Run CLI with --verbose flag for more details.> Task :app:bundleReleaseJsAndAssets FAILED

I've tried:

  • Updating Node
  • Cleaning Project
  • Restarting Computer

This is the snippet from the Metro Server Node Module

processRequest = (req, res, next) => {    this._processRequest(req, res, next).catch(next);  };

Additional Information:I am using a MacBook Pro with macOS Big Sur 11.5.2

Thanks everyone


Viewing all articles
Browse latest Browse all 6287

Trending Articles



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