create-guten-block icon indicating copy to clipboard operation
create-guten-block copied to clipboard

Build fails after ejecting when importing modules from outside cgb

Open dcblundell opened this issue 5 years ago • 0 comments

Before ejecting, the build scripts run successfully.

After ejecting, any custom block which imports from outside the cgb directory breaks the build with the following error.

Module build failed: Error: Plugin 0 specified in "/src/next/frontend/node_modules/next/babel.js" provided an invalid property of "default" (While processing preset: "/src/next/frontend/node_modules/next/babel.js")

The Wordpress directory exists at the same level at /frontend, and follows the expected structure.

I have not made any modifications to the scripts, so I am puzzled as to why the error happens post-eject.

dcblundell avatar Jan 15 '19 16:01 dcblundell