Is there a proper guide line to set up Ionic to work on Windows 10 using VS 2015 community


#1

Is there a proper guide line to set up Ionic to work on Windows 10 using VS 2015 community Edition.


#2

As far as i know the only thing you can do with VS is creating a new project from an existing project, then you select the folder of your project created via CLI. To configure your VS you need to download the packages of cordova and mobile development (open your programs & resources, right click on VS and then click alter if you haven’t downloaded this configs yet).
The ionic 2 templates for VS are outdated, they’re from beta.11 or something like this.


#3

Thanks Gabriel, I was using Beta.10 templates it worked fine for me. But since the R.C version of Ionic I can not work with VS any more. VS tells me that project has been build successfully, but it doesn’t transpile any thing.
I tried to use VS Code along with VS but VS code starts complaining ‘ionic’ is not an internal or external command…

I feel its really painful working with Ionic 2 framework.


#4

Oh got it, just do it the way i’ve told.
Create a project with existing code, them ionic serve it via your CLI and it’ll work like a charm


#5

Where can i Find Ionic CLI?
I was using VS Code it worked for couple of hours and all of sudden started giving ‘ionic’ is not an internal or external command.
Are there any Path Variables needed to be set.
I am wondering how all of sudden it stopped working.


#6

Have you ever updated your ionic? The CLI is the node CLI where you use to install/update ionic/cordova.
There’s no new path variables to set, not if it was working before.
Open Node.js prompt and typo ionic info and post the result here.
Try building again and post the errors here.
But as far as i know for what you’ve told so far there’s some steps you can do:

  • If you updated your ionic version and you want to work in a old project there is a guide from Ionic that helps you “transform” your beta project into the new rc’s version (i can’t find it now, if i find i’ll post here, but search on google).
  • You can downgrade your Ionic verson to a version it was working (not recomended).

#7

Yes I did install an update, I always used my project path and used npm commands to install.
I don’t know exactly where to see which variables needed to set?
I opened node.exe and typed
See what i got.

ionic info
ionic info
^^^^


#8

I managed to install ionic it was issue around, when I ran “npm update” it installed stuff somewhere unknown path.
So I needed to set
prefix=“Path”

but now I am getting errors

Runtime Error
Cannot find module "./debug/debug_node"
Stack
Error: Cannot find module "./debug/debug_node"
at eval (\D:\hgRepositories\prize\MegaPrize.App.UI\node_modules@angular\core\src\core.js:10:7)
at Object. (http://localhost:8100/build/main.js:4353:1)
at webpack_require (http://localhost:8100/build/main.js:20:30)
at eval (\D:\hgRepositories\prize\MegaPrize.App.UI\node_modules@angular\core\index.js:1:68)
at Object. (http://localhost:8100/build/main.js:72:1)
at webpack_require (http://localhost:8100/build/main.js:20:30)
at eval (\D:\hgRepositories\prize\MegaPrize.App.UI\node_modules@angular\compiler\src\template_parser\template_parser.js:1:72)
at Object. (http://localhost:8100/build/main.js:734:1)
at webpack_require (http://localhost:8100/build/main.js:20:30)
at eval (\D:\hgRepositories\prize\MegaPrize.App.UI\node_modules@angular\compiler\index.js:2:95)
Ionic Framework: 2.0.0-rc.3
Ionic Native: 2.2.11
Ionic App Scripts: 0.0.46
Angular Core: 2.1.1
Angular Compiler CLI: 2.1.1
Node: 7.2.1
OS Platform: Windows 10
Navigator Platform: Win32
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36