@ggabooo wrote:
what happened to me is this:
when i began the tutorial that appears in the documentation, i followed all the stebs one by one, i created my first app as the documentation said, i did the command
ionic serve
, no problem on this point, the app works fine on the port 8100, cool :D.
Then i decided to create another project, withs command lineionic start MyProject super
because i wanted to see all the functionalities; Then i wrote the same comand to serveionic serve
the CLI told me that it is serve in localhost:8100, just as the before project, the i went to open it on the browser and when i did it, the before project was ther, i refresh the page because it was on ths same port than the new project, i though doing this it'd show me the new project that i've already create, but it not happens; So i thought, well, maybe i have to close the other server that were opens with the first project, i've read some that said that could work if i use the combinationCTRL + C
or theq
one on the CLI, i did it, withq
command and nothig happened, actually the CLI saids it is a not recognized command, so i proved withCTRL + C
the CLI ask me if i wish to finish the work, so i puty
so i thought it was solve, i went to the browser and it keeps running the first project i did for the tutorial, so i decided to restar my computer, i thought with this all the servers i did with ionic will close. I did it and with with just open the browser and go to localhost:8100 the server of the first project created to follow the tutorial, keeps running even when i restar my computer and when i just open my browser to search it, i did not open my CLI, nothingactually i've proved with a lot of modalities to creating projects like
ionic start MyProject super
ionic start MyProject tabs
and always i did the commandionic serve
happened the same thing
I proved that comandionic serve -p 8101
to open it with othet port, and it works with other port if i use the module Blank, but with Super doesn't work with any port, with super if i made it with port 8100 it still open the tutorial project, but i've i proved with other port this appears in CLI and browser`[INFO] Starting app-scripts server: --p 8102 --port 8102 --livereload-port 35729 --r 35729 --address 0.0.0.0 - Ctrl+C to
cancel
[10:26:10] watch started ...
[10:26:10] build dev started ...
[10:26:10] clean started ...
[10:26:10] clean finished in 5 ms
[10:26:10] copy started ...
[10:26:10] transpile started ...
[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/app/app.component.ts, line: 23
Cannot find module '@ngx-translate/core'.L23: import { TranslateService } from '@ngx-translate/core'
[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/app/app.module.ts, line: 29
Cannot find module '@ionic-native/camera'.L29: import { Camera } from '@ionic-native/camera'; L30: import { GoogleMaps } from '@ionic-native/google-maps';
[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/app/app.module.ts, line: 30
Cannot find module '@ionic-native/google-maps'.L29: import { Camera } from '@ionic-native/camera'; L30: import { GoogleMaps } from '@ionic-native/google-maps'; L31: import { SplashScreen } from '@ionic-native/splash-screen';
[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/app/app.module.ts, line: 34
Cannot find module '@ngx-translate/core'.L34: import { TranslateModule, TranslateLoader } from '@ngx-translate/core'; L35: import { TranslateHttpLoader } from '@ngx-translate/http-loader';
[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/app/app.module.ts, line: 35
Cannot find module '@ngx-translate/http-loader'.L34: import { TranslateModule, TranslateLoader } from '@ngx-translate/core'; L35: import { TranslateHttpLoader } from '@ngx-translate/http-loader';
[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/pages/item-create/item-create.ts, line: 5
Cannot find module '@ionic-native/camera'.L5: import { Camera } from '@ionic-native/camera';
[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/pages/login/login.ts, line: 8
Cannot find module '@ngx-translate/core'.L8: import { TranslateService } from '@ngx-translate/core';
[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/pages/map/map.ts, line: 4
Cannot find module '@ionic-native/google-maps'.L4: import { GoogleMaps, GoogleMap, GoogleMapsEvent, LatLng, CameraPosition } from '@ionic-native/google-maps';
[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/pages/settings/settings.ts, line: 7
Cannot find module '@ngx-translate/core'.L7: import { TranslateService } from '@ngx-translate/core';
[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/pages/signup/signup.ts, line: 7
Cannot find module '@ngx-translate/core'.L7: import { TranslateService } from '@ngx-translate/core';
[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/pages/tabs/tabs.ts, line: 3
Cannot find module '@ngx-translate/core'.L2: import { NavController } from 'ionic-angular'; L3: import { TranslateService } from '@ngx-translate/core';
[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/pages/tutorial/tutorial.ts, line: 6
Cannot find module '@ngx-translate/core'.L6: import { TranslateService } from '@ngx-translate/core';
[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/providers/user.ts, line: 38
Property 'share' does not exist on type 'Observable'.L37: login(accountInfo: any) { L38: let seq = this.api.post('login', accountInfo).share();
[10:26:20] typescript: C:/Users/TOSHIBA/prueba3/src/providers/user.ts, line: 60
Property 'share' does not exist on type 'Observable'.L59: signup(accountInfo: any) { L60: let seq = this.api.post('signup', accountInfo).share();
[10:26:20] dev server running: http://localhost:8102/
[INFO] Development server running
Local: http://localhost:8102[10:26:21] copy finished in 11.12 s
[10:26:21] watch ready in 11.65 s`
IN CONCLUSION:
-no matters with kind of project i opened on port 8100 it will always appears the tutorial project
- the projects works fine in other ports, except for the Super modeTHE BIG QUESTION:
how may i close properly a server conection to could use the port in other projects?
here's my ionic info
global packages:
@ionic/cli-utils : 1.4.0 Ionic CLI : 3.4.0
local packages:
@ionic/app-scripts : 1.3.12 @ionic/cli-plugin-ionic-angular : 1.3.1 Ionic Framework : ionic-angular 3.5.0
System:
Node : v8.1.3 OS : Windows 10 Xcode : not installed ios-deploy : not installed ios-sim : not installed npm : 5.0.3
Posts: 2
Participants: 2