serverless / platform-sdk

Serverless Platform SDK
Apache License 2.0
17 stars 7 forks source link

An error: require() of ES modules is not supported occurs in NodeJS 12.16.0 used by @serverless/platform-client #98

Open ADIZhou opened 11 months ago

ADIZhou commented 11 months ago

An error: require() of ES modules is not supported occurs in NodeJS 12.16.0 used by serverless The error detail is:

error

My environment: nodeJS 12.16.0 npm: 6.13.4

My dependencies: { "/@serverless/dashboard-plugin": "5.5.4", "/serverless": "2.72.4", "/serverless/@serverless/components": "3.18.2", "@serverless/platform-client": "4.5.1" }

I found that axios in @serverless/platform-client@4.5.1 changes from 0.0.21 to 1.6.2, which leads to error.

What can I do to resolve, Thanks for your answering~