question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Packager doesn't start after upgrading to 0.46.0

See original GitHub issue

Is this a bug report?

Yes

Have you read the Bugs section of the Contributing to React Native Guide?

Yes

Environment

  1. react-native -v: 0.46.0
  2. node -v: v4.0.0
  3. npm -v: 4.2.0
  4. yarn --version (if you use Yarn): 0.23.4

Then, specify:

  1. Target Platform (e.g. iOS, Android): iOS
  2. Development Operating System (e.g. macOS Sierra, Windows 10): macOS Sierra
  3. Build tools (Xcode or Android Studio version, iOS or Android SDK version, if relevant): Xcode

Steps to Reproduce

  1. Run project from Xcode
  2. Terminal launches to start packager, then fails

Or:

  1. Run react-native start
  2. Packager fails

Expected Behavior

Packager starts; compiles project

Actual Behavior

I get this error:

/Users/alexduckmanton/AppsLocal/project_name/node_modules/metro-bundler/build/lib/TerminalClass.js:141
    this._nextStatusStr = util.format(format, ...args);
                                              ^^^

SyntaxError: Unexpected token ...
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:413:25)
    at Module._extensions..js (module.js:452:10)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/alexduckmanton/AppsLocal/project_name/node_modules/babel-register/lib/node.js:152:7)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/alexduckmanton/AppsLocal/project_name/node_modules/react-native/local-cli/server/runServer.js:18:18)
    at Module._compile (module.js:434:26)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:11
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

9reactions
jibberilinscommented, Jul 6, 2017

I had this problem this morning. You need to upgrade your node.js to the latest version which is v6 i believe. It will work fine then.

1reaction
alexduckmantoncommented, Jul 8, 2017

Cheers guys. @jibberilins that did the trick, thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrading R: package compatibility issues - Amazon AWS
Sometimes packages installed with a previous version of R will not work correctly with the new version of R. Sometimes they can crash...
Read more >
Installation — pandas 1.1.3 documentation
Miniconda allows you to create a minimal self contained Python installation, and then use the Conda command to install additional packages.
Read more >
Sub-action 'InstallMsiPackage' failed with error code: 1603 ...
The following error when trying to upgrade Plesk: ... ERROR: The installation of the package 'mariadb-admin' failed with code 1603. (upgrade: Upgrading ......
Read more >
Release Notes - Paludis, the Other Package Mangler - Exherbo
'cave purge' will now error if given parameters, since it does not do anything with them. 0.54.2: * Upgrading from older versions to...
Read more >
Rachio in 0.46.0 - #62 by turboc - Home Assistant Community
Even after upgrading HA to v0.51.2, Rachio still does not load. Any update on the functionality of this component? Error log:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found