Skip to content

Running CLI gives Typescript node error #68

@tonur

Description

@tonur

Hi there.
Running with Node version v24.1.0, when I call "npm run cli" on a freshly cloned repo gives the following error:

TSError: ⨯ Unable to compile TypeScript:
error TS5109: Option 'moduleResolution' must be set to 'NodeNext' (or left unspecified) when option 'module' is set to 'NodeNext'.

I can solve this by adding a simple tsconfig.json that contains the following:

{
  "compilerOptions": {
    "module": "NodeNext",
    "moduleResolution": "NodeNext",
    "target": "ES2020",
    "esModuleInterop": true,
    "strict": true,
    "skipLibCheck": true
  }
}

If okay, then I can make a small PR adding this.

I am also trying to dockerize this tool, where I really need a way to change the output path of the "resume.json" file or output to StdOut: https://github.com/JMPerez/linkedin-to-json-resume/blob/master/src/js/cli.ts#L95
So this might be one PR if the maintainer is okay with this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions