Can't require swagger-jsdoc

73 views Asked by At

When I run the code it showing Must use import to load ES Module: error message. How can I solve this..?

error code: 'ERR_REQUIRE_ESM'

1

There are 1 answers

0
Tony George On

Now I resolved the issue by downgrading swagger-jsdoc to 6.0.1