Can't require swagger-jsdoc

67 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 best solutions below

0
On

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