Closed lprintf closed 2 years ago
require
will not work with ESM.
import
a module first, then use it later.
See:
require
will not work with ESM.
import
a module first, then use it later.See:
OK, I will try again. I use import before but reuse require for fix the check problem.
Now, It works well locally, but can't pass the check. It seem to be a problem about node smoke-testing.js
of scripts/npm-pack-testing.sh
.
Error: Cannot find module 'qrcode-terminal'
You need to install qrcode-terminal
in scripts/npm-pack-testing.sh
revert Dependabot/npm and yarn/read pkg up 8.0.0