Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 4, 2017. It is now read-only.
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

webpack introduction problem #3514

Open
Open
@rixlabs

Description

Hi,
I'm trying to follow the Configuring Webpack section and after creating all the files I tried npm start.

First my env:
OS: mac osx 10.12.3
Node: v6.9.4
npm: 4.1.2

I can see the page on http://localhost:8080 but I have this errors in console:


at-loader] Checking finished with 16 errors
chunk {0} vendor.js (vendor) 2.64 MB {2} [initial] [rendered]
chunk {1} app.js, app.css (app) 3.43 kB {0} [initial] [rendered]
chunk {2} polyfills.js (polyfills) 577 kB [entry] [rendered]
WARNING in ./~/@angular/core/@angular/core.es5.js
5870:15-36 Critical dependency: the request of a dependency is an expression
WARNING in ./~/@angular/core/@angular/core.es5.js
5886:15-102 Critical dependency: the request of a dependency is an expression
ERROR in [at-loader] ./node_modules/@angular/common/src/platform_id.d.ts:8:42
 TS1039: Initializers are not allowed in ambient contexts.
ERROR in [at-loader] ./node_modules/@angular/common/src/platform_id.d.ts:9:41
 TS1039: Initializers are not allowed in ambient contexts.
ERROR in [at-loader] ./node_modules/@angular/common/src/platform_id.d.ts:10:45
 TS1039: Initializers are not allowed in ambient contexts.
ERROR in [at-loader] ./node_modules/@angular/common/src/platform_id.d.ts:11:44
 TS1039: Initializers are not allowed in ambient contexts.
ERROR in [at-loader] ./node_modules/@angular/compiler/src/util.d.ts:8:36
 TS1039: Initializers are not allowed in ambient contexts.
...

I found in angular-cli issues that it can be something with TypeScript version but I'm new and can't propose a decent solution myself.

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

        AltStyle によって変換されたページ (->オリジナル) /