Skip to content

glob' of null when trying to build #4919

Closed
@jathedok

Description

@jathedok

Please provide us with the following information:

OS?

Linux 4.4.0-63-generic #84-Ubuntu SMP x86_64 x86_64 GNU/Linux

Versions.

@angular/cli: 1.0.0-beta.32.3
node: 7.6.0
os: linux x64
@angular/common: 2.4.8
@angular/compiler: 2.4.8
@angular/core: 2.4.8
@angular/forms: 2.4.8
@angular/http: 2.4.8
@angular/platform-browser: 2.4.8
@angular/platform-browser-dynamic: 2.4.8
@angular/router: 3.4.8
@angular/cli: 1.0.0-beta.32.3
@angular/compiler-cli: 2.4.8

Repro steps.

ng build --env=prod

The log given by the failure.

TypeError: Cannot read property 'glob' of null
at ObjectSchemaTreeNode._set (/app/node_modules/@ngtools/json-schema/src/schema-tree.js:226:131)
at new ObjectSchemaTreeNode (/app/node_modules/@ngtools/json-schema/src/schema-tree.js:211:14)
at OneOfSchemaTreeNode._createChildProperty (/app/node_modules/@ngtools/json-schema/src/schema-tree.js:150:26)
at OneOfSchemaTreeNode._typesPrototype.schema.oneOf.map (/app/node_modules/@ngtools/json-schema/src/schema-tree.js:163:25)
at Array.map (native)
at OneOfSchemaTreeNode (/app/node_modules/@ngtools/json-schema/src/schema-tree.js:162:48)
at ArraySchemaTreeNode._createChildProperty (/app/node_modules/@ngtools/json-schema/src/schema-tree.js:150:26)
at ArraySchemaTreeNode._set (/app/node_modules/@ngtools/json-schema/src/schema-tree.js:288:39)
at new ArraySchemaTreeNode (/app/node_modules/@ngtools/json-schema/src/schema-tree.js:269:14)
at ObjectSchemaTreeNode._createChildProperty (/app/node_modules/@ngtools/json-schema/src/schema-tree.js:150:26)
at ObjectSchemaTreeNode._set (/app/node_modules/@ngtools/json-schema/src/schema-tree.js:226:45)
at new ObjectSchemaTreeNode (/app/node_modules/@ngtools/json-schema/src/schema-tree.js:211:14)
at ArraySchemaTreeNode._createChildProperty (/app/node_modules/@ngtools/json-schema/src/schema-tree.js:150:26)
at ArraySchemaTreeNode._set (/app/node_modules/@ngtools/json-schema/src/schema-tree.js:288:39)
at new ArraySchemaTreeNode (/app/node_modules/@ngtools/json-schema/src/schema-tree.js:269:14)
at RootSchemaTreeNode._createChildProperty (/app/node_modules/@ngtools/json-schema/src/schema-tree.js:150:26)
at RootSchemaTreeNode._set (/app/node_modules/@ngtools/json-schema/src/schema-tree.js:226:45)
at RootSchemaTreeNode.ObjectSchemaTreeNode (/app/node_modules/@ngtools/json-schema/src/schema-tree.js:211:14)
at RootSchemaTreeNode (/app/node_modules/@ngtools/json-schema/src/schema-tree.js:309:9)
at GeneratedSchemaClass.SchemaClassBase (/app/node_modules/@ngtools/json-schema/src/schema-class-factory.js:52:29)
at GeneratedSchemaClass (/app/node_modules/@ngtools/json-schema/src/schema-class-factory.js:140:13)
at new CliConfig (/app/node_modules/@angular/cli/models/config/config.js:17:24)
at Function.fromConfigPath (/app/node_modules/@angular/cli/models/config/config.js:80:16)
at Function.fromProject (/app/node_modules/@angular/cli/models/config.js:79:46)
at Object. (/app/node_modules/@angular/cli/commands/build.js:5:35)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Class.includedCommands (/app/node_modules/@angular/cli/addon/index.js:22:16)
at /app/node_modules/@angular/cli/ember-cli/lib/models/project.js:287:61
at Array.forEach (native)
at Project.addonCommands (/app/node_modules/@angular/cli/ember-cli/lib/models/project.js:286:15)
at Project.eachAddonCommand (/app/node_modules/@angular/cli/ember-cli/lib/models/project.js:321:30)
at module.exports (/app/node_modules/@angular/cli/ember-cli/lib/cli/lookup-command.js:33:13)
at CLI. (/app/node_modules/@angular/cli/ember-cli/lib/cli/cli.js:42:26)
at tryCatch (/app/node_modules/rsvp/dist/rsvp.js:538:12)
at invokeCallback (/app/node_modules/rsvp/dist/rsvp.js:553:13)
at publish (/app/node_modules/rsvp/dist/rsvp.js:521:7)
at flush (/app/node_modules/rsvp/dist/rsvp.js:2373:5)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)

Mention any other details that might be useful.

Generated a new app using the CLI and did a deployment with dokku to digitalocean


Thanks! We'll be in touch soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions