Closed daryl-sf closed 4 months ago
Similar error for me in an electronJS application:
Module format "cjs" does not support top-level await. Use the "es" or "system" output formats rather.
file: D:/Projects/STMng/node_modules/temp-dir/index.js
temp-dir
is a dependency of tempy
This is a problem with your bundler config, not this package.
https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
Hi,
I'm getting an error
Top-level await is not available in the configured target environment ("node14")
when upgrading from3.0.0
to3.1.0
.I'm guessing tempy is asking for engine >=14.16 but top-level await is available from 14.8 onwards.