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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Angular 10 throw warning when using path alias #18631
Comments
Hi @ngohungphuc, this should be solved in 10.1.0-rc.0. Can you try updating and see if this solved the issue? If the problem persists after upgrading, please provide a simple repository reproducing the problem.
|
@alan-agius4 I cant use rc version. This app is just on production. |
@ngohungphuc, you can try to RC version solely for testing. Unfortunately, without a reproduction we鈥檒l have be unable to action this issue. |
@alan-agius4 I can confirm this issue, but for Replicate by:
|
This seems like a bug but we'll need to look at a reproduction to find and fix the problem. Can you setup a minimal repro please? You can read here why this is needed. A good way to make a minimal repro is to create a new app via This might be related to your directory structure so its really important to get an accurate repro to diagnose this. |
Thanks for reporting this issue. However, you didn't provide sufficient information for us to understand and reproduce the problem. Please check out our submission guidelines to understand why we can't act on issues that are lacking important information. If the problem persists, please file a new issue and ensure you provide all of the required information when filling out the issue template. |
@alan-agius4 my apologies for taking so long to create a reproduced example as you kindly asked, I've been very busy. github.com/BenRacicot/alias-not-found-repro
Notes: Just an observation, the error:
seems to be pointing to the compiled file. (with those line numbers) Is that right? So it would seem that aliased deps are not making it into the compiled file. |
@BenRacicot try with your version still having that same error |
Hey @ngohungphuc, did you pull my repro and compare it to your project? |
This should be fixed in @angular-devkit/build-angular 0.1001.4 |
@alan-agius4 @BenRacicot
package.json
|
@ngohungphuc that is only a warning and not related to this alias issue which has been fixed. Your From the docs on configuring commonjs dependencies:
|
@BenRacicot the code is within my angular application and it's not any third party library. |
@ngohungphuc I know. Did you look into the link from the docs? |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
馃悶 bug report
Affected Package
The issue is caused by package @angular/~10.0.14Is this a regression?
NoDescription
I'm using @user/shared/selectors/selector to shorten the import path
In tsconfig.base.json
馃實 Your Environment
The text was updated successfully, but these errors were encountered: