create-guten-block
create-guten-block copied to clipboard
Build fails after ejecting when importing modules from outside cgb
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.