caugner / swc-unexpected-token-with

Reproduces a SyntaxError: Unexpected token 'with'

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

swc-unexpected-token-with

Steps to reproduce:

git clone https://github.com/caugner/swc-unexpected-token-with.git
cd swc-unexpected-token-with
nvm use
npm i
npm start

Yields:

SyntaxError: Unexpected token 'with'
    at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:119:18)
    at ESMLoader.moduleProvider (node:internal/modules/esm/loader:468:14)
    at async link (node:internal/modules/esm/module_job:68:21)

About

Reproduces a SyntaxError: Unexpected token 'with'


Languages

Language:TypeScript 100.0%