Skip to content

Error after upgrading to 0.18.1 : process.env.NODE_ENV undefined #5523

@Taakn

Description

@Taakn

Hello,

I followed the regular upgrade path from 0.14 (https://facebook.github.io/react-native/docs/upgrading.html) and I am getting the following error:

[warn][tid:com.facebook.React.JavaScript] undefined is not an object (evaluating 'process.env.NODE_ENV')
[error][tid:com.facebook.React.RCTExceptionsManagerQueue] Unhandled JS Exception: undefined is not an object (evaluating 'process.env.NODE_ENV')

Here is my package.json:

  "dependencies": {
    "ddp-client": "hharnisc/node-ddp-client#minimongo-cache",
    "event-emitter": "^0.3.4",
    "react-native": "^0.18.1",
    "react-native-material-kit": "^0.2.5",
    "react-native-navbar": "^1.1.7",
    "react-native-navigation-drawer": "^1.2.2",
    "react-native-vector-icons": "^1.0.4",
    "underscore": "^1.8.3"
  }

And just in case:

> process.env.NODE_ENV
'development'

I've also tried to no avail:

export NODE_ENV =development 

I've been stuck on this issue I'll really appreciate your help thanks !

untitled

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions