It’s the difference between commons is and esm.

The import statement can be used in ESM.

Otherwise you shall use require().

It means you are trying to run the code on the “server” side

Reply to this note

Please Login to reply.

Discussion

No replies yet.