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

Command failed with exit code 4294967295: Svelte + custom path aliases in tsconfig.json #832

Open
jerrygreen opened this issue Sep 3, 2023 · 0 comments
Labels

Comments

@jerrygreen
Copy link

Bug Description

depcheck raises an error::

$ depcheck
Missing dependencies
* ~: ./src/app/+layout.svelte
error Command failed with exit code 4294967295.

Code snippets

Where the dependency is used (+layout.svelte):

<script lang="ts">
  import anything from '~/some/relative/path.json'
</script>

It's not a dependency, it's just a file import. But with an alias, it breaks. Here's my tsconfig.json:

{
  "extends": "./.svelte-kit/tsconfig.json",
  "compilerOptions": {
    "paths": {
      "~/*": ["./src/*"]
    }
  },
}

Versions

  • node -v: v18.16.1
  • npm -v: 9.5.1
  • depcheck --version: 1.4.3

Extra info

It seems it just breaks due to inability to properly parse ~ symbol. Something goes wrong and it shows a complete nonsense error with code 4294967295.

@jerrygreen jerrygreen added the bug label Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant