-
Notifications
You must be signed in to change notification settings - Fork 75
Angular 5.0: build.js: TypeError: args.indexOf is not a function #61
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
If you change ngc({ project: `${tempLibFolder}/tsconfig.lib.json` }) to ngc([ '--project', `${tempLibFolder}/tsconfig.lib.json` ]) it should work again. Note that the call to // Compile to ES2015.
.then(() => ngc({ project: `${tempLibFolder}/tsconfig.lib.json` })
.then(exitCode => exitCode === 0 ? Promise.resolve() : Promise.reject())
.then(() => console.log('ES2015 compilation succeeded.'))
)
// Compile to ES5.
.then(() => ngc({ project: `${tempLibFolder}/tsconfig.es5.json` })
.then(exitCode => exitCode === 0 ? Promise.resolve() : Promise.reject())
.then(() => console.log('ES5 compilation succeeded.'))
) becomes // Compile to ES2015.
.then(() => ngc([ '--project', `${tempLibFolder}/tsconfig.lib.json` ]))
.then(exitCode => exitCode === 0 ? Promise.resolve() : Promise.reject())
.then(() => console.log('ES2015 compilation succeeded.'))
// Compile to ES5.
.then(() => ngc([ '--project', `${tempLibFolder}/tsconfig.es5.json` ]))
.then(exitCode => exitCode === 0 ? Promise.resolve() : Promise.reject())
.then(() => console.log('ES5 compilation succeeded.')) |
Thank you. I can confirm this new code worked for me. |
I confirm it works too, thanks a lot ! For information, I did a fork of the starter, up to date with Angular 5 : Not sure how to handle the PR here, as a Angular 4 version should still be available. |
@bgotink it worked for me too, congrats friend! |
Upgrading to angular 5.0 seems to break
build.js
. It fails on this expression:It looks like
main.js
has changed quite a bit forngc
. It used to parse that argument usingNow it uses
The text was updated successfully, but these errors were encountered: