-
Notifications
You must be signed in to change notification settings - Fork 12k
[6.0.0 Regression] build-optimizer breaks exports #10655
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
Yes, that happens here too when I try to start my app that was built with command I'm using:
|
Thanks @aripp it worked for me too. The bundle is slighter bigger, but works for the time being. For who wants to test using @angular/elements try my modified version: {
"configurations":{
"production":{
"optimization":true,
"outputHashing":"none",
"sourceMap":false,
"extractCss":false,
"namedChunks":false,
"aot":true,
"extractLicenses":true,
"vendorChunk":false,
"buildOptimizer":false,
"fileReplacements":[
{
"replace":"src/environments/environment.ts",
"with":"src/environments/environment.prod.ts"
}
]
}
}
} cc #7799 |
this workaround worked for me: |
Thanks @andriykrasnychuk for the workaround! |
Does this happen with the 6.1.x betas? |
Nope, just tested and it looks like this is no longer an issue. Specifically, it seems to have been fixed by |
Although, I see that #10983 is using |
I manually added |
Can't reproduce the problem in @cyph either after upgrading to 6.1, so I'll close this again. |
Try for this..
|
by this issue, seems that the build-optimizer is not working anymore valor-software/ngx-bootstrap#4948 |
@zernolo can you open a new issue with a reproduction please? |
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. |
Versions
Repro steps
git clone https://github.com/buu700/ng6-quill-test.git
cd ng6-quill-test
npm install .
ng serve --prod
This project is a small modification of
ng new
's output which addsimport 'parchment';
. The relevant code within theparchment
package is as follows:Observed behavior
Logged to console:
Desired behavior
As when building/serving without
--prod
,Registry.Scope
should be defined.Mention any other details that might be useful (optional)
Disabling the build optimizer fixes the issue. I didn't run into this with 6.0.0-rc.7, so the regression is from some time between 6.0.0-rc.8 and 6.0.0 final.
The text was updated successfully, but these errors were encountered: