Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generator with Typescript #1159

Open
GuillaumeUnice opened this issue Jul 22, 2016 · 1 comment
Open

generator with Typescript #1159

GuillaumeUnice opened this issue Jul 22, 2016 · 1 comment

Comments

@GuillaumeUnice
Copy link

Hi every,

I just init a project with TypeScript and add some node modules. The project use by default webpack-stream with ts-loader and when I build I have a multiple error like that :

ERROR in /home/stagiaire/cloudunit-v2/cu-frontweb/node_modules/rxjs/add/operator/zipAll.d.ts
(2,16): error TS2435: Ambient modules cannot be nested in other modules.

This is my typings.json

{
  "name": "cuFrontweb",
  "version": false,
  "ambientDependencies": {
    "angular-cookies": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-cookies.d.ts#bb051830df88f5a55dcf06b7fe85bf6b62cc97f2",
    "angular-sanitize": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-sanitize.d.ts#bb051830df88f5a55dcf06b7fe85bf6b62cc97f2",
    "jquery": "github:DefinitelyTyped/DefinitelyTyped/jquery/jquery.d.ts#bb051830df88f5a55dcf06b7fe85bf6b62cc97f2",
    "angular-resource": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-resource.d.ts#bb051830df88f5a55dcf06b7fe85bf6b62cc97f2",
    "angular-ui-router": "github:DefinitelyTyped/DefinitelyTyped/angular-ui-router/angular-ui-router.d.ts#bb051830df88f5a55dcf06b7fe85bf6b62cc97f2",
    "ui-bootstrap": "github:DefinitelyTyped/DefinitelyTyped/angular-ui-bootstrap/angular-ui-bootstrap.d.ts#bb051830df88f5a55dcf06b7fe85bf6b62cc97f2",
    "angular-mocks": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-mocks.d.ts#bb051830df88f5a55dcf06b7fe85bf6b62cc97f2",
    "angular": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular.d.ts#bb051830df88f5a55dcf06b7fe85bf6b62cc97f2",
    "jasmine": "github:DefinitelyTyped/DefinitelyTyped/jasmine/jasmine.d.ts#bb051830df88f5a55dcf06b7fe85bf6b62cc97f2",
    "karma-jasmine": "github:DefinitelyTyped/DefinitelyTyped/karma-jasmine/karma-jasmine.d.ts#bb051830df88f5a55dcf06b7fe85bf6b62cc97f2",
    "moment-node": "github:DefinitelyTyped/DefinitelyTyped/moment/moment-node.d.ts#bb051830df88f5a55dcf06b7fe85bf6b62cc97f2",
    "moment": "github:DefinitelyTyped/DefinitelyTyped/moment/moment.d.ts#bb051830df88f5a55dcf06b7fe85bf6b62cc97f2",
    "es6-shim": "registry:dt/es6-shim#0.31.2+20160317120654"
  },
  "globalDependencies": {
    "angular": "registry:dt/angular#1.5.0+20160720071806",
    "angular-animate": "registry:dt/angular-animate#1.5.0+20160709061515",
    "angular-cookies": "registry:dt/angular-cookies#1.4.0+20160317120654",
    "angular-material": "registry:dt/angular-material#1.1.0-rc5.0+20160721000848",
    "angular-mocks": "registry:dt/angular-mocks#1.3.0+20160425155016",
    "angular-resource": "registry:dt/angular-resource#1.5.0+20160613142217",
    "angular-sanitize": "registry:dt/angular-sanitize#1.3.0+20160317120654",
    "angular-toastr": "registry:dt/angular-toastr#1.6.0+20160330162121",
    "angular-ui-bootstrap": "registry:dt/angular-ui-bootstrap#0.13.3+20160602140119",
    "angular-ui-router": "registry:dt/angular-ui-router#1.1.5+20160707113237",
    "jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
    "jquery": "registry:dt/jquery#1.10.0+20160704162008",
    "karma-jasmine": "registry:dt/karma-jasmine#0.0.0+20160316155526",
    "moment": "registry:dt/moment#2.8.0+20160316155526",
    "moment-node": "registry:dt/moment-node#2.11.1+20160511043338",
    "ng-stomp": "registry:dt/ng-stomp#0.0.0+20151124112528",
    "rx.all": "registry:dt/rx.all#2.2.28+20160316155526"
  },
  "globalDevDependencies": {
    "angular-mocks": "registry:dt/angular-mocks#1.5.0+20160608104721",
    "browser-sync": "registry:dt/browser-sync#0.0.0+20160524142403",
    "chalk": "registry:dt/chalk#0.4.0+20160317120654",
    "del": "registry:dt/del#2.2.0+20160317120654",
    "estraverse": "registry:dt/estraverse#0.0.0+20160523040947",
    "gulp": "registry:dt/gulp#3.8.0+20160316155526",
    "gulp-autoprefixer": "registry:dt/gulp-autoprefixer#0.0.0+20160316155526",
    "gulp-filter": "registry:dt/gulp-filter#3.0.1+20160316155526",
    "gulp-flatten": "registry:dt/gulp-flatten#0.0.0+20160316155526",
    "gulp-htmlmin": "registry:dt/gulp-htmlmin#1.3.0+20160316155526",
    "gulp-inject": "registry:dt/gulp-inject#0.0.0+20160316155526",
    "gulp-load-plugins": "registry:dt/gulp-load-plugins#0.0.0+20160316155526",
    "gulp-protractor": "registry:dt/gulp-protractor#1.0.0+20160316155526",
    "gulp-rename": "registry:dt/gulp-rename#0.0.0+20160316155526",
    "gulp-replace": "registry:dt/gulp-replace#0.0.0+20160316155526",
    "gulp-rev": "registry:dt/gulp-rev#5.0.1+20160316155526",
    "gulp-rev-replace": "registry:dt/gulp-rev-replace#0.2.1+20160316155526",
    "gulp-sass": "registry:dt/gulp-sass#0.0.0+20160316155526",
    "gulp-size": "registry:dt/gulp-size#1.2.3+20160316155526",
    "gulp-sourcemaps": "registry:dt/gulp-sourcemaps#0.0.0+20160316155526",
    "gulp-uglify": "registry:dt/gulp-uglify#0.0.0+20160316155526",
    "gulp-useref": "registry:dt/gulp-useref#3.0.0+20160316155526",
    "gulp-util": "registry:dt/gulp-util#0.0.0+20160316155526",
    "karma": "registry:dt/karma#0.13.9+20160720063042",
    "karma-coverage": "registry:dt/karma-coverage#0.5.3+20160316155526",
    "karma-jasmine": "registry:dt/karma-jasmine#0.0.0+20160316155526",
    "lodash": "registry:dt/lodash#3.10.0+20160720001309",
    "main-bower-files": "registry:dt/main-bower-files#0.0.0+20160316155526",
    "phantomjs": "registry:dt/phantomjs#1.9.0+20160316155526",
    "typescript": "registry:dt/typescript#0.4.0+20160317120654",
    "wiredep": "registry:dt/wiredep#3.0.0+20160317120654"
  }
}

How can I correct that?

Thanks ;)

@tchiss
Copy link

tchiss commented Jul 23, 2016

Hi,
In your typings.json file, remove the ambientDependencies and leave only the globalDependencies. Then tap the command typings install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants