expo / examples

Example projects that demonstrate how to use Expo APIs and integrate Expo with other popular tools
2.32k stars 883 forks source link

with-gatsby example does not run #196

Open cjpete opened 4 years ago

cjpete commented 4 years ago

Describe the bug The example doesn't run, instead the following error is reported: Missing external configuration for type:commonjs2

To Reproduce Steps to reproduce the behavior:

cd with-gatsby
yarn
yarn gatsby develop
ghost commented 4 years ago

Getting the same error on yarn gatsby develop. I have tried cloning the example with-gatsby and also tried a fresh install based on the read-me.

ERROR #98123 WEBPACK Generating SSR bundle failed Missing external configuration for type:commonjs2

Looks like the issue is in gatsby-plugin-react-native-web. This error is not thrown if i exclude the plugin from gatsby-config.js.

@EvanBacon You have added a comment on https://github.com/expo/web-examples/issues/18 for expo with gatsby. Could you please guide us how to go about this issue?

thebetterjort commented 4 years ago

commonjs2 has been depreciated. Looks like gatsby team moved to commonjs3 and it has broken this.

slorber commented 4 years ago

Hey, thanks for reporting, will have to look at this, unfortunately not much time.

@thebetterjort do you have any hint on what the solution could be? is it a expo/webpack-config issue or gatsby-plugin-react-native-web?