component-playground icon indicating copy to clipboard operation
component-playground copied to clipboard

Component not working with Gatsby js

Open ycgarrido opened this issue 5 years ago • 1 comments

image

image

ycgarrido avatar Oct 29 '18 13:10 ycgarrido

Your code is failing on basic ESM imports. We publish both ESM and CommonJS files, so there's very likely something at issue with the gatsby build setup, namely needing to handle ESM with package.json:module or using CJS via package.json:main. See, e.g.:

Can you please provide a minimal repository with install + build instructions to see the issue or a CodeSandbox? This will make it much more tractable to help you out. Thanks!

/cc @rgerstenberger @boygirl

ryan-roemer avatar Oct 29 '18 19:10 ryan-roemer