Open ADIZhou opened 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:
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" }
{ "/@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.
axios
What can I do to resolve, Thanks for your answering~
An error: require() of ES modules is not supported occurs in NodeJS 12.16.0 used by serverless The error detail is:
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~