Rainbow-CPaaS / StarterKit-SDKWeb-Angular2

Starter Kit for the ALE Rainbow SDK for Web based on Angular 2+ environment
2 stars 2 forks source link

ng serve does not run the application #1

Open ahmadkhalaf1 opened 6 years ago

ahmadkhalaf1 commented 6 years ago

hello , i downloaded the project and run command npm install inside it then i tried to run it using ng serve it show that angular cli is deprecated , i removed it and installed latest one then it showed that Environment configuration does not contain "environmentSource" entry.

A new environmentSource entry replaces the previous source entry inside environments.

To migrate angular-cli.json follow the example below:

Before:

"environments": { "source": "environments/environment.ts", "dev": "environments/environment.ts", "prod": "environments/environment.prod.ts" }

After:

"environmentSource": "environments/environment.ts", "environments": { "dev": "environments/environment.ts", "prod": "environments/environment.prod.ts" } i replaced it with the After: code

then run ng serve again and got this error image i need to use web sdk please tell me what to do to fix this or give me latest working project for rainbow sdk with angular2

zucher commented 6 years ago

Hi @ahmadkhalaf1, could you check the issue_#1 branch to see if this package.json update solves your issue ?

Thank you

Regards

ahmadkhalaf1 commented 6 years ago

Thank you so much Dear @zucher works perfect but it show this Yellow warning about Typescript i don't know how serious is this and what to do to fix it , i understand that i need to change my version . but running the command that error provide didn't work .

Thanks :)

image

zucher commented 6 years ago

hi @ahmadkhalaf1,

you probably needs To cleanup jour de env by removing tout node_modules directory and doing again a npm i. if your typescript exec is in global you may remove it and also installing it again.

Regards

ahmadkhalaf1 commented 6 years ago

@zucher Thanks for your help :)

i tried to remove node_modules directory and npm install again , and still getting same error

@angular/compiler-cli@4.4.6 requires typescript@'>=2.1.0 <2.4.0' but 2.7.1 was found instead.
Using this version can result in undefined behaviour and difficult to debug problems.

Please run the following command to install a compatible version of TypeScript.

    npm install typescript@'>=2.1.0 <2.4.0'

To disable this warning run "ng set warnings.typescriptMismatch=false".

would this affect anything in the future of my app and development ?

zucher commented 6 years ago

Did you restart installation from scratch with a clean project ?

ahmadkhalaf1 commented 6 years ago

yes i did , i downloaded the issue branch as zip and npm install inside the folder

zucher commented 6 years ago

I do the same without this kind of failure, strange

ahmadkhalaf1 commented 6 years ago

yah this is strange , thanks for your time :) i will see if this will make any problem in the future

oanguenot commented 6 years ago

In my side, I sync with the source code and launched npm start which internally launches ng serve without any trouble.

Have you still have this issue ?