platform-sdk icon indicating copy to clipboard operation
platform-sdk copied to clipboard

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

Open ADIZhou opened this issue 2 years ago • 0 comments

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/[email protected] changes from 0.0.21 to 1.6.2, which leads to error.

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

ADIZhou avatar Nov 17 '23 09:11 ADIZhou