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

ng serve does not run the application #1

Open
ahmadkhalaf1 opened this issue Feb 8, 2018 · 9 comments
Open

ng serve does not run the application #1

ahmadkhalaf1 opened this issue Feb 8, 2018 · 9 comments

Comments

@ahmadkhalaf1
Copy link

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
Copy link
Contributor

zucher commented Feb 8, 2018

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

Thank you

Regards

@ahmadkhalaf1
Copy link
Author

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
Copy link
Contributor

zucher commented Feb 9, 2018

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
Copy link
Author

ahmadkhalaf1 commented Feb 12, 2018

@zucher Thanks for your help :)

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

@angular/[email protected] 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
Copy link
Contributor

zucher commented Feb 12, 2018

Did you restart installation from scratch with a clean project ?

@ahmadkhalaf1
Copy link
Author

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

@zucher
Copy link
Contributor

zucher commented Feb 12, 2018

I do the same without this kind of failure, strange

@ahmadkhalaf1
Copy link
Author

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

@oanguenot
Copy link
Contributor

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 ?

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

3 participants