-
Notifications
You must be signed in to change notification settings - Fork 12k
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
ng build --prod fails with an obscured error from UglifyJs #5730
Comments
Uglify is not compatible with ES6+ code |
@sinapis why do you have the bootstrap twice ?
|
it's still an issue. Instead we're handcuffed/not able to edit that layer of the package (unless I suppose one dives into their node_modules and hand-edits the angular cli webpack config or such? .. quite a chore to imagine..), and the maker of the library doesn't seem to know or care that standards have moved on and you need to modernize your deps & configs to comply w/ the new environment. |
To wrap up w/ a positive comment at least: I was able to compile my production build w/ |
Add the sourcemaps flag, e.g. |
@robert-claypool What is the full name of the sm flag so I can look up what it does and how to apply it to this angular-universal project that doesn't not using angular-cli? |
@robert-claypool 's suggestion of using Anyway, in combination with fixing that, and the above mentioned changes to tsconfig, my builds are fully working as expected for ES6 syntax at least; I am fully settled on this now. |
Is it possible to use --sm directly in a webpack config?
…On Aug 4, 2017 5:57 PM, "Joe Costanzo" ***@***.***> wrote:
@robert-claypool <https://github.com/robert-claypool> 's suggestion of
using --sm did help me isolate one offending line where I had bad syntax
(I confused defining a return type for a function, as opposed to an
argument type, in an arrow function declaration) causing an lint warn or
error somewhere in my prod build.
Anyway, in combination with fixing that, and the above mentioned changes
to tsconfig, my builds are fully working as expected for ESNext syntax.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5730 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AX5XbkFL0T7cvbHMqDXp_omi9q6ERTjiks5sU74RgaJpZM4Ms3f8>
.
|
With production option, Uglify of webpack fails. angular/angular-cli#5730 There are two ways to solve this issue. Turning off production option of webpack or making babel do more polyfill by passing browser options even though the result code will never run on browser.
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.0.0
node: 6.9.1
os: win32 x64
@angular/common: 4.0.0
@angular/compiler: 4.0.0
@angular/core: 4.0.0
@angular/forms: 4.0.0
@angular/http: 4.0.0
@angular/platform-browser: 4.0.0
@angular/platform-browser-dynamic: 4.0.0
@angular/router: 4.0.0
@angular/cli: 1.0.0
@angular/compiler-cli: 4.0.0
Repro steps.
ng build --prod
.angular.cli.json
tsconfig.json
The log given by the failure.
Desired functionality.
no error or at least error message which is actionable.
there is no build output (dest folder is not created) - how can i debug this issue?
Mention any other details that might be useful.
The text was updated successfully, but these errors were encountered: