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

@types/core-js errors when added as dependency to Angular-Cli (1.5.0) + Electron #362

Closed
flamusdiu opened this issue Nov 13, 2017 · 1 comment

Comments

@flamusdiu
Copy link

Case

BUG

Issue

ERRORS WHEN TRYING TO BUILD USING GULP 4.0 TASK INSIDE AN ANGULAR-CLI (1.5.0) PROJECT AND ELECTRON. THE ERRORS HAPPEN WHEN YOU ADD RXDB AS A DEPENDENCY BEFORE YOU IMPORT IT INTO THE PROJECT.

POSSIBLE RELATED ISSUE DefinitelyTyped/DefinitelyTyped#15410. NOTHING IN THAT ISSUE SEEMS RESOLVE THE ISSUE WHEN MODIFYING THE tsconfig.json file.

Info

  • Environment: (Node.js/browser/electron/etc.)
    NODEJS/ELECTRON
  • Adapter: (IndexedDB/Localstorage/LevelDB/etc.)
    LEVELDB

Code

GULP TASK (SNIPPED FROM gulp.babel.js):

import typescript from 'gulp-typescript';
import gulp from 'gulp';

const path = {    
    scripts: {
        electron:'src/electron/**/*.ts',
        electronApp: 'dist/electron-app.js',
        dest: 'dist/'
    }
};

function buildElectron() {
    return gulp.src(path.scripts.electron)
        .pipe(typescript())
        .pipe(gulp.dest(path.scripts.dest));
}

The depends from the package.json

"dependencies": {
    "8fold-marked": "^0.3.8",
    "@angular/animations": "^5.0.1",
    "@angular/cdk": "^5.0.0-rc0",
    "@angular/common": "^5.0.1",
    "@angular/compiler": "^5.0.1",
    "@angular/core": "^5.0.1",
    "@angular/flex-layout": "git+https://github.com/angular/flex-layout-builds.git",
    "@angular/forms": "^5.0.1",
    "@angular/http": "^5.0.1",
    "@angular/material": "^5.0.0-rc0",
    "@angular/platform-browser": "^5.0.1",
    "@angular/platform-browser-dynamic": "^5.0.1",
    "@angular/platform-server": "^5.0.1",
    "@angular/router": "^5.0.1",
    "angular-file": "^0.3.7",
    "babel-polyfill": "^6.26.0",
    "babel-runtime": "^6.26.0",
    "blob-util": "^1.3.0",
    "bluebird": "^3.5.1",
    "concurrently": "^3.5.0",
    "convert": "file:bin/convert",
    "electron": "^1.8.2-beta.1",
    "markdown-toc": "git+https://github.com/flamusdiu/markdown-toc.git#try-changes-1",
    "material-design-icons": "^3.0.1",
    "pouchdb-adapter-http": "^6.3.4",
    "pouchdb-adapter-websql": "^6.3.4",
    "pouchdb-server": "^2.3.7",
    "rxdb": "^6.0.1",
    "rxjs": "^5.5.2",
    "zone.js": "^0.8.18"
  },
  "devDependencies": {
    "@angular/cli": "^1.5.0",
    "@angular/compiler-cli": "^5.0.1",
    "@types/jasmine": "^2.6.3",
    "@types/marked": "^0.3.0",
    "@types/node": "^8.0.51",
    "babel-cli": "^6.26.0",
    "babel-preset-env": "^1.6.1",
    "codelyzer": "^4.0.1",
    "devtron": "^1.4.0",
    "electron-connect": "^0.6.2",
    "electron-debug": "^1.4.0",
    "electron-packager": "^9.1.0",
    "electron-rebuild": "^1.6.0",
    "express": "^4.16.2",
    "express-pouchdb": "^2.3.7",
    "gulp": "github:gulpjs/gulp#4.0",
    "gulp-debug": "^3.1.0",
    "gulp-rename": "^1.2.2",
    "gulp-replace": "^0.6.1",
    "gulp-run": "^1.7.1",
    "gulp-shell": "^0.6.3",
    "gulp-typescript": "^3.2.3",
    "jasmine-core": "~2.8.0",
    "jasmine-spec-reporter": "^4.2.1",
    "karma": "~1.7.1",
    "karma-chrome-launcher": "~2.2.0",
    "karma-cli": "~1.0.1",
    "karma-coverage-istanbul-reporter": "^1.3.0",
    "karma-jasmine": "~1.1.0",
    "karma-jasmine-html-reporter": "^0.2.2",
    "load-gulp-tasks": "^0.1.0",
    "melanke-watchjs": "^1.3.1",
    "node-sass": "^4.6.0",
    "protractor": "~5.2.0",
    "require-dir": "^0.3.2",
    "ts-node": "~3.3.0",
    "tslint": "^5.8.0",
    "typescript": "2.4.2",
    "webpack-sources": "^1.0.2"
  },
@flamusdiu
Copy link
Author

Oops ... I had to pull in the tsconfig.json through creating a tsProject from gulp-typescript =\

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

1 participant