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

Compiling is stuck when tsconfig compilerOptions.paths is set #1972

Open
gergelypap opened this issue Aug 12, 2022 · 2 comments
Open

Compiling is stuck when tsconfig compilerOptions.paths is set #1972

gergelypap opened this issue Aug 12, 2022 · 2 comments

Comments

@gergelypap
Copy link

gergelypap commented Aug 12, 2022

Description of Bug

Provide a concise description of your bug and your project link (if applicable).
When compilerOptions.paths is provided in tsconfig.json, the app cannot compile, it loads forever.

Not sure if this is an Angular specific issue.

Steps to Reproduce

  1. Go to https://stackblitz.com/edit/angular-ivy-rsjndt?file=tsconfig.json
  2. Try removing the paths from tsconfig.json, and reload the page.
  3. App should compile successfully.
  4. Re-add path aliases.
  5. Compile should be stuck on "Starting dev server"

Expected Behavior

App compiles.

Screenshots/Screencast

image

@rsorrt
Copy link

rsorrt commented Nov 2, 2022

Hello, same problem here:

I added "paths" under compilerOptions and compiling is stuck on "Starting dev server":

in tsconfig.json I have (under compilerOptions);

   baseUrl": "./src",
    "paths": {
      "@appCommons/*" : ["app/commons/*"]
    }

in FILES I have:
src
   app
       commons
              util-validator.ts

Then in a component:

        import UtilValidator from "@appCommons/util-validator



@Lonli-Lokli
Copy link

Why #220 is marked as fixed??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants