examples icon indicating copy to clipboard operation
examples copied to clipboard

with-gatsby example does not run

Open cjpete opened this issue 4 years ago • 3 comments

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

cjpete avatar Jul 11 '20 13:07 cjpete

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?

ghost avatar Jul 15 '20 05:07 ghost

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

thebetterjort avatar Jul 18 '20 23:07 thebetterjort

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?

slorber avatar Aug 28 '20 13:08 slorber