shlomiassaf / ngx-modialog

Modal / Dialog for Angular
http://shlomiassaf.github.io/ngx-modialog
MIT License
686 stars 242 forks source link

Problem with dependencies and "npm run start" #283

Closed tolbier closed 7 years ago

tolbier commented 7 years ago

Hi : it's been a nightmare to build this app on node.

As the package.json is in the repo right now, the npm installl is giving errors for dependencies.

I had to replace the versions to the last updates, at least it is not giving me errors with dependencies.

This is my package.json

` { "name": "angular2-modal", "description": "Angular2 Modal (dialog) window.", "version": "2.0.2", "repository": { "type": "git", "url": "https://github.com/shlomiassaf/angular2-modal.git" }, "keywords": [ "angular", "angular2", "bootstrap", "vex", "modal" ], "author": "Shlomi Assaf", "license": "MIT", "main": "bundles/angular2-modal.umd.js", "module": "esm/index.js", "typings": "esm/index.d.ts", "homepage": "https://github.com/shlomiassaf/angular2-modal", "bugs": { "url": "https://github.com/shlomiassaf/angular2-modal/issues" }, "scripts": { "rimraf": "rimraf", "webpack": "webpack", "webpack-dev-server": "webpack-dev-server", "gulp": "gulp", "server": "npm run server:dev", "server:dev": "webpack-dev-server --config config/webpack.dev.js --progress --profile --watch --content-base src/", "build": "gulp build", "build-site": "npm run build-site:prod", "build-site:prod": "webpack --config config/webpack.prod.js --progress --profile --bail", "github-deploy:dev": "webpack --config config/webpack.github-deploy.js --progress --profile --env.githubDev", "github-deploy:prod": "webpack --config config/webpack.github-deploy.js --progress --profile --env.githubProd", "github-deploy": "npm run github-deploy:dev", "release": "npm run gulp -- release", "start": "npm run server:dev" }, "dependencies": { "@angular/common": "^2.1.1", "@angular/compiler": "^2.1.1", "@angular/core": "^2.1.1", "@angular/forms": "^2.1.1", "@angular/platform-browser": "^2.1.1", "@angular/platform-browser-dynamic": "^2.1.1", "@angular/router": "^3.1.1", "bootstrap": "^3.3.6", "core-js": "^2.3.0", "rxjs": "^5.0.0-rc.1", "zone.js": "0.7.5" }, "devDependencies": { "@angular/compiler-cli": "^2.1.2", "@angular/platform-server": "^2.0.1", "@angularclass/hmr-loader": "^3.0.2", "@types/chai": "^3.4.34", "@types/hammerjs": "^2.0.28", "@types/node": "^7.0.0", "@types/source-map": "^0.5.0", "@types/uglify-js": "^2.0.27", "@types/webpack": "^2.2.1", "angular2-template-loader": "^0.6.0", "assets-webpack-plugin": "^3.4.0", "awesome-typescript-loader": "^2.2.4", "copy-webpack-plugin": "^4.0.0", "css-loader": "^0.26.1", "del": "^2.2.2", "exports-loader": "^0.6.3", "expose-loader": "^0.7.1", "file-loader": "^0.9.0", "gh-pages": "^0.12.0", "gulp": "^3.9.1", "gulp-conventional-changelog": "^1.1.0", "gulp-git": "^1.12.0", "gulp-header": "^1.8.8", "gulp-shell": "^0.5.2", "gulp-sourcemaps": "^2.2.0", "html-webpack-plugin": "^2.21.0", "imports-loader": "^0.7.0", "json-loader": "^0.5.4", "merge2": "^1.0.2", "raw-loader": "0.5.1", "require-dir": "^0.3.0", "rimraf": "^2.5.2", "rollup": "^0.41.4", "run-sequence": "^1.2.2", "script-ext-html-webpack-plugin": "^1.3.2", "source-map-loader": "^0.1.5", "string-replace-loader": "1.0.5", "style-loader": "^0.13.1", "to-string-loader": "^1.1.4", "ts-helpers": "1.1.2", "ts-node": "^2.0.0", "tslint": "^4.0.0-dev.0", "tslint-loader": "^3.3.0", "typescript": "^2.0.6", "url-loader": "^0.5.7", "webpack": "^2.1.0-beta.25", "webpack-dev-middleware": "^1.6.1", "webpack-dev-server": "^2.1.0-beta.10", "webpack-md5-hash": "^0.0.5", "webpack-merge": "^2.4.0" } }

`

but now it is giving me some errors when trying to do the "npm run start" (see npm_run_start_angular2_modals.txt )

What i'm doing wrong ?

tnx

in advance.

tolbier commented 7 years ago

I`ve done a pull request https://github.com/shlomiassaf/angular2-modal/pull/286 with the solution Iǜe found