We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I get the following error:
Uncaught Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: C:\MyApp\node_modules\temp-write\index.js
I Use Latest NodeJS: 16.2.0 I Use Latest temp-write: 5.0.0
The text was updated successfully, but these errors were encountered:
https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
Sorry, something went wrong.
The problem is: I had it like:
tmpWrite = require('temp-write')
and changed it to:
import tmpWrite from 'temp-write'
It then gives this error:
'import ... =' can only be used in TypeScript files.ts(8002)
No branches or pull requests
I get the following error:
Uncaught Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: C:\MyApp\node_modules\temp-write\index.js
I Use Latest NodeJS: 16.2.0
I Use Latest temp-write: 5.0.0
The text was updated successfully, but these errors were encountered: