Skip to content

viewEncapsulation is not defined #3264

@ritz078

Description

@ritz078

Please provide us with the following information:

OS?

Mac OSX el capitan

Mac OSX el capitan

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:

angular-cli: 1.0.0-beta.21
node: 6.6.0
os: darwin x64

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.

Ran command ng g component purchase-leads

The log given by the failure.

Normally this include a stack trace and some more information.

viewEncapsulation is not defined (Error in blueprint template: /Users/ritz078/projects/housing-assist/node_modules/angular-cli/blueprints/component/files/__path__/__name__.component.ts)
ReferenceError: viewEncapsulation is not defined (Error in blueprint template: /Users/ritz078/projects/housing-assist/node_modules/angular-cli/blueprints/component/files/__path__/__name__.component.ts)
    at eval (eval at <anonymous> (/Users/ritz078/projects/housing-assist/node_modules/lodash/template.js:225:12), <anonymous>:9:5)
    at processTemplate (/Users/ritz078/projects/housing-assist/node_modules/angular-cli/angular-cli/lib/models/file-info.js:20:36)
    at /Users/ritz078/projects/housing-assist/node_modules/angular-cli/angular-cli/lib/models/file-info.js:97:20
    at tryCatch (/Users/ritz078/projects/housing-assist/node_modules/rsvp/dist/lib/rsvp/-internal.js:215:12)
    at invokeCallback (/Users/ritz078/projects/housing-assist/node_modules/rsvp/dist/lib/rsvp/-internal.js:230:13)
    at publish (/Users/ritz078/projects/housing-assist/node_modules/rsvp/dist/lib/rsvp/-internal.js:198:7)
    at flush (/Users/ritz078/projects/housing-assist/node_modules/rsvp/dist/lib/rsvp/asap.js:85: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.


Thanks! We'll be in touch soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfultype: bug/fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions