Skip to content

Cannot read property 'map' of undefined in production #34

@codypearce

Description

@codypearce

I installed the packages in the README and added gatsby-plugin-react-native-web to gatsbyjs-config. Everything works fine in development, but building the site and serving it in production causes the error below:

Codinhood | Codinhood 2020-05-12 07-11-24

"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-native": "^0.62.2",
"react-native-web": "^0.11.7",
"expo": "^37.0.10",
"gatsby": "^2.18.12",
"gatsby-plugin-react-native-web": "^3.1.0",

If I remove the plugin from the config then the issue goes away. I've used V2.0.0 on other Gatsbyjs sites, like https://material-bread.org, without running into this issue. Any ideas what might be wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions