-
Notifications
You must be signed in to change notification settings - Fork 12k
--build-optimizer giving 'browser' doesn't contain a valid alias configuration error #7105
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
Comments
Does this happen without |
Without By looking at the error message below, I think it is related to how I import the module. I use the latest Here is an example of how I include the template/style
|
I was getting this too its related to #7113 |
@mattma that fix doesn't always work. They published |
@scttcper I have updated to |
fyi, for some reason I had to make sure |
@JSMike Tried with your solution with @filipesilva the issue was labeled with need info. What kind of info does it miss? |
same error here after passing to 1.3rc1 cc @filipesilva thanks in advance if any news |
If this happens with and without Be aware that yarn seem to be bugged and not resolving the dependencies properly in some versions: #7136 (comment). |
@filipesilva It does fix the issue with rc.3. Build pipeline is fine now. The only issue is the app does not work by missing HTTP modules. I am using the newest HttpClientModule. is it being supported with experimental |
I'm not aware of it being unsupported... Can you open a new issue with a reproduction for me to investigate? |
I get this error only when i use |
@eddieedease can you open a new issue with a reproduction please? |
Got it fixed by bumping |
Your issue was most like #7110 then. |
@filipesilva is this related to #7341?
after upgrading to typescript v2.5.2, that error went away but getting "cannot find module" for AoT. |
I upgraded to angular cli 1.4.4, but I am still seeing this error I tried installing "enhanced-resolve": "3.3.0", but that did not seem to help either. |
A similar issue occurs for me on Travis using Node 7 and NPM 5. Downgrading to NPM 4 resolves the issue. Also Node 6 and NPM 5 work. |
I'm also experiencing this issue using |
I am also experience same issue that "ngfactory not found" and "Field 'browser' doesn't contain a valid alias configuration" |
SAme here. Any update ? |
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 or Feature Request (mark with an
x
)Versions.
@angular/cli: 1.3.0-rc.0
node: 6.10.3
os: darwin x64
@angular/animations: 4.1.2
@angular/common: 4.1.2
@angular/compiler: 4.1.2
@angular/core: 4.1.2
@angular/forms: 4.1.2
@angular/http: 4.1.2
@angular/platform-browser: 4.1.2
@angular/platform-browser-dynamic: 4.1.2
@angular/router: 4.1.2
@angular/cli: 1.3.0-rc.0
@angular/compiler-cli: 4.1.2
Repro steps.
Not able to reproduce. Gives error on
ng build --prod --build-optimizer
The log given by the failure.
Desired functionality.
ng build --prod --build-optimizer
should workMention any other details that might be useful.
The text was updated successfully, but these errors were encountered: