Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught exception when dependencies are not installed #91

Open
illright opened this issue Aug 22, 2024 · 1 comment
Open

Uncaught exception when dependencies are not installed #91

illright opened this issue Aug 22, 2024 · 1 comment
Labels
good first issue Good for newcomers PRIORITY | LOW Can wait until after release TYPE | bug Something isn't working

Comments

@illright
Copy link
Member

illright commented Aug 22, 2024

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

@illright
Copy link
Member Author

Actually this one is due to the autogenerated TSConfig not existing

@illright illright added TYPE | bug Something isn't working PRIORITY | LOW Can wait until after release labels Aug 22, 2024
@illright illright added the good first issue Good for newcomers label Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers PRIORITY | LOW Can wait until after release TYPE | bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant