Skip to content

Uncaught exception when dependencies are not installed #91

Open
@illright

Description

@illright
Member

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/tsconfck@3.1.1_typescript@5.5.3/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

Activity

illright

illright commented on Aug 22, 2024

@illright
MemberAuthor

Actually this one is due to the autogenerated TSConfig not existing

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @illright

      Issue actions

        Uncaught exception when dependencies are not installed · Issue #91 · feature-sliced/steiger