-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
Bug Report or Feature Request (mark with an x
)
- [X] bug report -> please search issues before submitting
- [ ] feature request
Area
- [X] devkit
- [ ] schematics
Versions
node --version v8.11.1
npm --version 6.1.0
Repro steps
{
"$schema": "http://json-schema.org/draft-06/schema",
"title": "My builder schema",
"type": "object",
"allOf": [
{
"$ref": "file://../../node_modules/@angular-devkit/build-angular/src/browser/schema.json#"
}
],
"properties": {
"myProp": {
"type": "object"
}
},
"additionalProperties": false
}
or
{
"$schema": "http://json-schema.org/draft-06/schema",
"title": "My builder schema",
"type": "object",
"allOf": [
{
"$ref": "../../node_modules/@angular-devkit/build-angular/src/browser/schema.json#"
}
],
"properties": {
"myProp": {
"type": "object"
}
},
"additionalProperties": false
}
The log given by the failure
Protocol "file:" not supported. Expected "http:"
Error: Protocol "file:" not supported. Expected "http:"
at new ClientRequest (_http_client.js:131:11)
at request (http.js:38:10)
at Object.get (http.js:42:13)
at Promise (C:\Users\User\source\repos\AutoFluent-Cloud\autofluent-clients\node_modules@angular-devkit\core\src\json\schema\registry.js:74:18)
at new Promise ()
at CoreSchemaRegistry._fetch (C:\Users\User\source\repos\AutoFluent-Cloud\autofluent-clients\node_modules@angular-devkit\core\src\json\schema\registry.js:73:16)
at Object.loadSchema (C:\Users\User\source\repos\AutoFluent-Cloud\autofluent-clients\node_modules@angular-devkit\core\src\json\schema\registry.js:61:39)
at loadMissingSchema (C:\Users\User\source\repos\AutoFluent-Cloud\autofluent-clients\node_modules@angular-devkit\core\node_modules\ajv\lib\compile\async.js:67:64)
at _compileAsync (C:\Users\User\source\repos\AutoFluent-Cloud\autofluent-clients\node_modules@angular-devkit\core\node_modules\ajv\lib\compile\async.js:56:48)
at C:\Users\User\source\repos\AutoFluent-Cloud\autofluent-clients\node_modules@angular-devkit\core\node_modules\ajv\lib\compile\async.js:32:34
or
Unable to determine the domain name
Error: Unable to determine the domain name
at new ClientRequest (_http_client.js:85:13)
at request (http.js:38:10)
at Object.get (http.js:42:13)
at Promise (C:\Users\User\source\repos\AutoFluent-Cloud\autofluent-clients\node_modules@angular-devkit\core\src\json\schema\registry.js:74:18)
at new Promise ()
at CoreSchemaRegistry._fetch (C:\Users\User\source\repos\AutoFluent-Cloud\autofluent-clients\node_modules@angular-devkit\core\src\json\schema\registry.js:73:16)
at Object.loadSchema (C:\Users\User\source\repos\AutoFluent-Cloud\autofluent-clients\node_modules@angular-devkit\core\src\json\schema\registry.js:61:39)
at loadMissingSchema (C:\Users\User\source\repos\AutoFluent-Cloud\autofluent-clients\node_modules@angular-devkit\core\node_modules\ajv\lib\compile\async.js:67:64)
at _compileAsync (C:\Users\User\source\repos\AutoFluent-Cloud\autofluent-clients\node_modules@angular-devkit\core\node_modules\ajv\lib\compile\async.js:56:48)
at C:\Users\User\source\repos\AutoFluent-Cloud\autofluent-clients\node_modules@angular-devkit\core\node_modules\ajv\lib\compile\async.js:32:34
Desired functionality
$ref
relative schemas