Skip to content

Uncaught exception when dependencies are not installed #91

Open
@illright

Description

@illright

When you clone a Nuxt project, but don't run npm install, and try to run Steiger, you get a big scary error:

file://pnpm/global/5/.pnpm/[email protected][email protected]/node_modules/tsconfck/src/parse.js:261
        throw new TSConfckParseError(
              ^

TSConfckParseError: failed to resolve "extends":"./.nuxt/tsconfig.json" in 
    code: 'MODULE_NOT_FOUND',
    requireStack: [ '' ]
  },
  tsconfigFile: ''
}

It's because Nuxt has some auto-generated TS configs that get generated in a postinstall script after you do npm i

Handle this error and print a user-friendly message that explains how to fix this

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions