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

Add friendly message for when getTsConfig fails #24

Open
egasimus opened this issue Mar 22, 2024 · 0 comments
Open

Add friendly message for when getTsConfig fails #24

egasimus opened this issue Mar 22, 2024 · 0 comments

Comments

@egasimus
Copy link
Collaborator

egasimus commented Mar 22, 2024

When tsconfig.json is missing, the following errors is thrown:

 ⋯   Compiling TypeScript...
node:internal/process/esm_loader:34
      internalBinding('errors').triggerUncaughtException(
                                ^
TypeError [Error]: Cannot read properties of null (reading 'path')
    at load (file:///.../node_modules/@ganesha/esbuild/loader.mjs:56:54)
    at async nextLoad (node:internal/modules/esm/hooks:750:22)
    at async Hooks.load (node:internal/modules/esm/hooks:383:20)
    at async MessagePort.handleMessage (node:internal/modules/esm/worker:199:18)

Either:

  • Tell the user to create a tsconfig
  • Ignore the error and compile with default settings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant