Angular CLI: 6.0.0-rc.2
Node: 8.11.1
OS: win32 x64
Angular: 6.0.0-rc.3
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
@angular/cdk: 6.0.0-rc.1
@angular/cli: 6.0.0-rc.2
@angular/material: 6.0.0-rc.1
@angular-devkit/architect: 0.5.4
@angular-devkit/build-angular: 0.5.4
@angular-devkit/build-optimizer: 0.5.4
@angular-devkit/core: 0.5.4
@angular-devkit/schematics: 0.5.4
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 6.0.0-rc.2.4
@schematics/angular: 0.5.4
@schematics/update: 0.5.4
typescript: 2.7.2
webpack: 4.5.0
update from 1.7.4 to rc2
in angular.json file i have in scripts[0]
"scripts": [
"../node_modules/bignumber.js/bignumber.js",
"../node_modules/moment/min/moment.min.js",
"../node_modules/moment/min/locales.js",
"../node_modules/iban/iban.js"
]
but I get
Schema validation failed with the following errors:
Data path ".scripts[0]" should be object.
What is the new syntax to add scripts (assets) ?
Heya @istiti, the new syntax is:
"scripts": [
{
"input": "../node_modules/bignumber.js/bignumber.js"
}
],
to avoid confusion
"scripts": [
{
"input": "a.js",
"input": "b.js"
}
],
or
"scripts": [
{
"input": "a.js"
},{
"input": "b.js"
}
],
The second one. Multiple properties with the same name on a json object overwrite each other.
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
Heya @istiti, the new syntax is: