Closed
Description
ES modules are only supported in Node.js 12, and import()
must be used instead of require()
.
We currently use require()
because we support Node 10.
It seems like some users are trying to use ES modules in their next.config.js
, which currently fails.
Bugsnag errors here, here and there.
This will be a growing problem in 3 months (April 2021) when Node 10 becomes officially unsupported.