You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use cashify, but when try in on a new project, I get the below error.
tsc index.ts && node index.js
file:///home/ss/test/index.js:2
exports.__esModule = true;
^
ReferenceError: exports is not defined in ES module scope
This file is being treated as an ES module because it has a '.js' file extension and '/home/ss/test/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
at file:///home/ss/test/index.js:2:1
Using node -vv16.16.0 and tsc -vVersion 4.7.4 and have set to target ES2021, as that seams to be the latest version Node 16.16 supports.
I have followed this howto, and made the changes accordingly.
I would like to use cashify, but when try in on a new project, I get the below error.
Using
node -v
v16.16.0
andtsc -v
Version 4.7.4
and have set to target ES2021, as that seams to be the latest version Node 16.16 supports.I have followed this howto, and made the changes accordingly.
Question
Can anyone figure out what I am doing wrong?
PoC repo here:
git clone https://github.com/littlesandra88/p1
index.ts
package.json
tsconfig.json
The text was updated successfully, but these errors were encountered: