Repository navigation
Upgraded to beta.12 and RxJS beta.3 - works, but warning #468
Copy link
Copy link
Closed
Description
ok, changes:
package.json (I have some extra - bootstrap, crypto-js, jQuery here):
{
"name": "angular2-webpack-starter",
"version": "4.0.0",
"description": "An Angular 2 Webpack Starter kit featuring Angular 2 (Router, Http, Forms, Services, Tests, E2E, Coverage), Karma, Protractor, Jasmine, Istanbul, TypeScript, and Webpack by AngularClass",
"author": "Patrick Stapleton <patrick@angularclass.com>",
"homepage": "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/angularclass/angular2-webpack-starter",
"license": "MIT",
"scripts": {
"clean": "npm cache clean && rimraf node_modules doc typings coverage dist",
"clean:dist": "./node_modules/.bin/rimraf dist",
"preclean:install": "npm run clean",
"clean:install": "npm set progress=false && npm install",
"preclean:start": "npm run clean",
"clean:start": "npm start",
"watch": "npm run watch:dev",
"watch:dev": "npm run build:dev -- --watch",
"watch:dev:hmr": "npm run watch:dev -- --hot",
"watch:test": "npm run test -- --auto-watch --no-single-run",
"watch:prod": "npm run build:prod -- --watch",
"build": "npm run build:dev",
"prebuild:dev": "npm run clean:dist",
"build:dev": "node --max-old-space-size=4096 ./node_modules/webpack/bin/webpack --config config/webpack.dev.js --progress --profile --colors --display-error-details --display-cached",
"prebuild:prod": "npm run clean:dist",
"build:prod": "node --max-old-space-size=4096 ./node_modules/webpack/bin/webpack --config config/webpack.prod.js --progress --profile --colors --display-error-details --display-cached --bail",
"server": "npm run server:dev",
"server:dev": "node --max-old-space-size=4096 ./node_modules/webpack-dev-server/bin/webpack-dev-server --config config/webpack.dev.js --inline --progress --profile --colors --watch --display-error-details --display-cached --content-base src/",
"server:dev:hmr": "npm run server:dev -- --hot",
"server:prod": "./node_modules/.bin/http-server dist --cors",
"webdriver:update": "./node_modules/.bin/webdriver-manager update",
"webdriver:start": "./node_modules/.bin/webdriver-manager start",
"lint": "./node_modules/.bin/tslint 'src/**/*.ts'",
"pree2e": "npm run webdriver:update -- --standalone",
"e2e": "./node_modules/.bin/protractor",
"e2e:live": "npm run e2e -- --elementExplorer",
"test": "node --max-old-space-size=4096 ./node_modules/karma/bin/karma start",
"ci": "npm run e2e && npm run test",
"docs": "./node_modules/.bin/typedoc --options typedoc.json --exclude '**/*.spec.ts' ./src/",
"start": "npm run server",
"typings-install": "./node_modules/.bin/typings install",
"postinstall": "npm run typings-install",
"preversion": "npm test",
"version": "npm run build",
"postversion": "git push && git push --tags"
},
"dependencies": {
"@angular2-material/button": "^2.0.0-alpha.1",
"@angular2-material/card": "^2.0.0-alpha.1",
"@angular2-material/checkbox": "^2.0.0-alpha.1",
"@angular2-material/core": "^2.0.0-alpha.1",
"@angular2-material/progress-circle": "^2.0.0-alpha.1",
"@angular2-material/radio": "^2.0.0-alpha.1",
"@angular2-material/sidenav": "^2.0.0-alpha.1",
"@angular2-material/toolbar": "^2.0.0-alpha.1",
"angular2": "2.0.0-beta.12",
"bootstrap": "^4.0.0-alpha.2",
"bootstrap-loader": "^1.0.10",
"core-js": "^2.1.5",
"jquery": "^2.2.2",
"rxjs": "5.0.0-beta.3",
"tether": "^1.2.0",
"zone.js": "0.6.6"
},
"devDependencies": {
"angular2-hmr": "~0.2.3",
"awesome-typescript-loader": "~0.17.0-rc.2",
"compression-webpack-plugin": "^0.3.0",
"copy-webpack-plugin": "^1.1.1",
"css-loader": "^0.23.1",
"es6-promise": "^3.1.2",
"es6-promise-loader": "^1.0.1",
"es6-shim": "^0.35.0",
"es7-reflect-metadata": "^1.6.0",
"exports-loader": "^0.6.3",
"expose-loader": "^0.7.1",
"file-loader": "^0.8.5",
"html-webpack-plugin": "^2.14.0",
"http-server": "^0.9.0",
"imports-loader": "^0.6.5",
"istanbul-instrumenter-loader": "^0.2.0",
"json-loader": "^0.5.4",
"karma": "^0.13.22",
"karma-chrome-launcher": "^0.2.3",
"karma-coverage": "^0.5.5",
"karma-jasmine": "^0.3.8",
"karma-mocha-reporter": "^2.0.0",
"karma-phantomjs-launcher": "^1.0.0",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "1.7.0",
"ng2lint": "0.0.10",
"node-sass": "^3.4.2",
"parse5": "^2.1.5",
"phantomjs-polyfill": "0.0.2",
"phantomjs-prebuilt": "^2.1.6",
"protractor": "^3.2.2",
"raw-loader": "0.5.1",
"remap-istanbul": "^0.5.1",
"resolve-url-loader": "^1.4.3",
"rimraf": "^2.5.2",
"sass-loader": "^3.2.0",
"source-map-loader": "^0.1.5",
"style-loader": "^0.13.0",
"ts-helper": "0.0.1",
"ts-node": "^0.7.1",
"tslint": "^3.6.0",
"tslint-loader": "^2.1.3",
"typedoc": "^0.3.12",
"typescript": "~1.8.9",
"typings": "^0.7.9",
"url-loader": "^0.5.7",
"webpack": "^1.12.14",
"webpack-dev-server": "^1.14.1",
"webpack-md5-hash": "^0.0.5"
},
"repository": {
"type": "git",
"url": "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/angularclass/angular2-webpack-starter.git"
},
"bugs": {
"url": "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/angularclass/angular2-webpack-starter/issues"
},
"engines": {
"node": ">= 4.2.1",
"npm": ">= 3"
}
}
vendor.ts - had to add some Rx operators in order to have it compile:
// Angular 2
import 'angular2/platform/browser';
import 'angular2/core';
import 'angular2/http';
import 'angular2/router';
// RxJS
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/mergeMap';
import 'rxjs/add/operator/switch';
import 'rxjs/add/operator/zip';
// Angular 2 Material 2
// TODO(gdi2290): uncomment when material is fixed
// import '@angular2-material/sidenav';
// import '@angular2-material/toolbar';
// import '@angular2-material/button';
// import '@angular2-material/checkbox';
// import '@angular2-material/radio';
// import '@angular2-material/progress-circle';
// import '@angular2-material/card';
// look in platform/directives and platform/providers
import 'jquery';
import 'bootstrap-loader';
if ('production' === ENV) {
// Production
} else {
// Development
}
Now, I use Observable.fromPromise in one of my files and I had to use this import to get it compile:
import "rxjs/add/Observable/fromPromise";
but then I get warning:
WARNING in ./~/rxjs/add/observable/fromPromise.js
There is another module with an equal name when case is ignored.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Rename module if multiple modules are expected or use equal casing if one module is expected.
So I wonder how this can be fixed. Other then that it works.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
[-]Upgraded to beta.12 and RxJS beta.2 - works, but warning[/-][+]Upgraded to beta.12 and RxJS beta.3 - works, but warning[/+]PatrickJS commentedon Mar 24, 2016
Angular 2 only supports rxjs beta.2 at the moment
alvipeo commentedon Mar 24, 2016
Yes, but it perfectly works with beta.3 :)
PatrickJS commentedon Mar 28, 2016
I updated the repo to beta.12 for rxjs beta.3 the angular2 repo needs to be updated. I'm going to close this now until the angular2 repo is updated
PatrickJS commentedon Mar 30, 2016
I'm updating the repo to rxjs 4