mehrabisajad / ng2-datepicker-jalali

datepicker jalali for angular 2
MIT License
21 stars 7 forks source link

it's incompatible with angular version 4 #3

Open mohsensrmst opened 6 years ago

mohsensrmst commented 6 years ago

Hi Thank you for good Module but i'm using angular version "~4.2.3" when add your Module to my project get this Erorr:

Unexpected token <
  Evaluating http://localhost:2634/@ng-bootstrap/ng-bootstrap
  Evaluating http://localhost:2634/app/service/during-detail.component.js
  Evaluating http://localhost:2634/app/app.routing.module.js
  Evaluating http://localhost:2634/app/app.module.js
  Evaluating http://localhost:2634/app/main.js
  Loading ../app
    at eval (<anonymous>)
    at evaluate (system.src.js:2821)
    at system.src.js:3620
    at dynamicExecute (system.src.js:1144)
    at doEvaluate (system.src.js:1091)
    at ensureEvaluate (system.src.js:999)
    at system.src.js:1017
    at Object.eval (:2634/app/service/during-detail.component.js:18)
    at eval (:2634/app/service/during-detail.component.js:101)
    at eval (:2634/app/service/during-detail.component.js:102)
mehrabisajad commented 6 years ago

check your ng-bootstrap in node_modules and get last version "1.0.0-beta.3"

add "@ng-bootstrap/ng-bootstrap": "^1.0.0-beta.3" to dependencies package.json. and in terminal run npm install

amirhosseinfaraji commented 6 years ago

Hi My angular version is 4.0.1, When I run ng serve I get this error:

Metadata version mismatch for module /node_module/@ng-bootstrap/ng-bootstrap/ in version 4, expected 3, resolving symbol AooMdule in app.module.ts

because my project bootstrap version is 3, I cant change it to 4 becase my project doesn't work Do you have any idea?

Thanks regards.