Skip to content

ng serve is giving errors for a basic project created by ng new #4620

@tabassumsarah

Description

@tabassumsarah

Please provide us with the following information:

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Mac OSX EI 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.18

Repro steps.

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

Nothng

The log given by the failure.

Normally this include a stack trace and some more information.

Mention any other details that might be useful.

SyntaxError: Unexpected token {
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (../a/node_modules/@ngtools/webpack/src/index.js:5:10)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.../a/node_modules/angular-cli/models/webpack-build-typescript.js:5:17)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (../a/node_modules/angular-cli/models/webpack-config.js:2:34)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (../a/node_modules/angular-cli/tasks/build-webpack.js:6:24)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (..

/a/node_modules/angular-cli/commands/build.js:3:23)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Class.module.exports.includedCommands (/../a/node_modules/angular-cli/addon/index.js:21:16)
at ..a/node_modules/angular-cli/lib/models/project.js:392:61
at Array.forEach (native)
at Project.addonCommands (../a/node_modules/angular-cli/lib/models/project.js:391:15)
at Project.eachAddonCommand (../a/node_modules/angular-cli/lib/models/project.js:426:30)
at module.exports (../a/node_modules/angular-cli/lib/cli/lookup-command.js:33:13)
at CLI. (..a/node_modules/angular-cli/lib/cli/cli.js:34:26)
at tryCatch (../a/node_modules/rsvp/dist/rsvp.js:538:12)
at invokeCallback (../a/node_modules/rsvp/dist/rsvp.js:553:13)
at publish (../a/node_modules/rsvp/dist/rsvp.js:521:7)
at flush ..a/node_modules/rsvp/dist/rsvp.js:2373:5)
at nextTickCallbackWith0Args (node.js:420:9)
at process._tickCallback (node.js:349:13)


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