Skip to content

SyntaxError: Unexpected token ; #1404

Description

@SephReed

Expected Behavior

Should compile just fine

Actual Behavior

SyntaxError: Unexpected token ;

"scripts": {
    "start": "ts-node -O '{\"module\": \"commonjs\"}' ./src/Server.ts"
},

Screen Shot 2021-07-20 at 2 14 17 PM

Screen Shot 2021-07-20 at 2 14 30 PM

I can't see any reason why this like would give an error.

Steps to reproduce the problem

Unsure... it's super random. Some files it'll do it, others it wont. It always has to do with constructor arguments. I can't share my entire project.

Minimal reproduction

It appears to be fairly random when it will and will-not work. I can't find any pattern. I can't reproduce it from one file to another, and I have no idea why. Some files, the construct just doesn't like having any arguments.

Specifications

ts-node v10.1.0
node v11.12.0
compiler v4.2.3

  • tsconfig.json, if you're using one:
{ nope }
  • Operating system and version: Mac OS recentish
  • If Windows, are you using WSL or WSL2?:

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions