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
We are attempting to use ncc to transpile some typescript code into a single js file, and some of the dependencies include code that includes a nullish coalesce operator and it seems to simply ignore them and outputs it in the outputted js file which gives the following error when you attempt and run via node dist/index.js:
const d = options.lastModified ??Date.now()
^
SyntaxError: Unexpected token '?'
I have the target defined both in the command: ncc build -a -e typescript --target es2015 src/main.ts
We are attempting to use ncc to transpile some typescript code into a single js file, and some of the dependencies include code that includes a nullish coalesce operator and it seems to simply ignore them and outputs it in the outputted js file which gives the following error when you attempt and run via
node dist/index.js
:I have the target defined both in the command:
ncc build -a -e typescript --target es2015 src/main.ts
and in the tsconfig file:
Node version: 14
The text was updated successfully, but these errors were encountered: