vitepress icon indicating copy to clipboard operation
vitepress copied to clipboard

build error with code: ERR_REQUIRE_ESM

Open edgexie opened this issue 2 years ago • 0 comments

Describe the bug

I used the third part lib named troisjs,

build error with code: ERR_REQUIRE_ESM

Reproduction

my project is at https://github.com/edgexie/edgexie.github.io with the action records , it show the error at build step, the error screen shot:

image

Expected behavior

build pass

System Info

sys: Windows 10 Version 21H2
node: 16.17.0

Additional context

No response

Validations

  • [X] Follow our Code of Conduct
  • [X] Read the docs.
  • [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

edgexie avatar Sep 13 '22 14:09 edgexie