daltonmenezes/aura-theme

CLI providing error when making port

DanKlaver15 opened this issue · 4 comments

Receiving an error when using the make port command with the CLI. Error is [ERR_REQUIRE_ESM]: require() not supported. More verbose error message in the terminal shows it’s the cpy module. I was able to get it working by downgrading cpy to version 8.1.2 which was the last version built using CommonJS instead of ESM.

Additional errors found when attempting to publish a port
CleanShot 2022-04-14 at 09 36 08

Hi @DanKlaver15 , I just tried it now and everything is working as expected. Here are the version I'm running it on:

yarn v1.22.18
node v16.13.1

Can you try it please using these versions?

@daltonmenezes I updated yarn and I think that did the trick since I was able to publish the PR for the Nova port earlier today.

@DanKlaver15 All right, I'm closing this issue for now, please let me know if you face any issues, thanks.