next-workspaces icon indicating copy to clipboard operation
next-workspaces copied to clipboard

How to use react-native-web in combination with this project

Open tychovbh opened this issue 6 years ago • 0 comments

I'm trying to use react-native-web within this project. NextJS delivers an example: https://github.com/zeit/next.js/tree/master/examples/with-react-native-web

It adds a .babelrc file with the following content

{
  "presets": ["next/babel"],
  "plugins": [
    ["react-native-web", { commonjs: true }]
  ]
}

This however breaks importing components from the core folder. I guess that the .babelrc file does not merge with next.config.js file reading from this issue https://github.com/zeit/next.js/issues/4010 Don't use a .babelrc and instead pack everything into the next.config.js Unfortunately I have no idea how to pack everything into the next.config.js. I was hoping that you guys might have an example?

tychovbh avatar Aug 27 '18 19:08 tychovbh