Error if i want to start a old App, but if i make a new one everthing works fine


#1

Hi i have the same Error if i want to start a old App, but if i make a new one everthing works fine…

C:\Users\figueirog\Documents\tmp\opess>ionic info
[ERROR] Error occurred while loading plugins. CLI functionality may be limited.
        Checking for CLI updates now...
[ERROR] No updates found after plugin error--please report this issue.

global packages:

    @ionic/cli-utils : 1.0.0
    Ionic CLI        : 3.0.0

System:

    Node       : v6.10.3
    OS         : Windows 10
    Xcode      : not installed
    ios-deploy : not installed
    ios-sim    : not installed

TypeError: Path must be a string. Received undefined
#2

Just so it is documented: What are the commands you are using for this?


#3

Hi Sujan, thanks for the fast reply.

Here how it works for me on a new Blank App.

C:\Users\figueirog\Documents\tmp>cd opess2

C:\Users\figueirog\Documents\tmp\opess2>ionic start -blank
tabs ............... ionic-angular A starting project with a simple tabbed interface
blank .............. ionic-angular A blank starter project
sidemenu ........... ionic-angular A starting project with a side menu with navigation in the content area
conference ......... ionic-angular A project that demonstrates a realworld application
tutorial ........... ionic-angular A tutorial based project that goes along with the Ionic documentation
aws ................ ionic-angular AWS Mobile Hub Starter
tabs ............... ionic1 A starting project for Ionic using a simple tabbed interface
blank .............. ionic1 A blank starter project for Ionic
sidemenu ........... ionic1 A starting project for Ionic using a side menu with navigation in the content area
maps ............... ionic1 An Ionic starter project using Google Maps and a side menu

C:\Users\figueirog\Documents\tmp\opess2>ionic start blank
? What starter would you like to use: tabs
✔ Creating directory C:\Users\figueirog\Documents\tmp\opess2\blank - done!
Fetching app base (https://github.com/driftyco/ionic2-app-base/archive/master.tar.gz)
✔ Downloading - done!
Fetching starter template tabs (https://github.com/driftyco/ionic2-starter-tabs/archive/master.tar.gz)
✔ Downloading - done!
✔ Updating package.json with app details - done!
✔ Creating configuration file ionic.config.json - done!
Installing dependencies may take several minutes!
> npm install
✔ Running command - done!
> npm install --save-dev --save-exact @ionic/cli-plugin-ionic-angular@latest
✔ Running command - done!
> npm install --save-dev --save-exact @ionic/cli-plugin-cordova@latest
✔ Running command - done!

♬ ♫ ♬ ♫  Your Ionic app is ready to go! ♬ ♫ ♬ ♫

Run your app in the browser (great for initial development):
  ionic serve

Run on a device or simulator:
  ionic cordova run ios

Test and share your app on a device with the Ionic View app:
  http://view.ionic.io

? Link this app to your Ionic Dashboard to use tools like Ionic View? Yes

You will need to login in order to link this app. Please run the following commands to do so.
  ionic login - login first
  ionic link - then link your app

Go to your newly created project: cd ./blank

C:\Users\figueirog\Documents\tmp\opess2>ionic serve
[ERROR] Sorry! ionic serve can only be run in an Ionic project directory.

C:\Users\figueirog\Documents\tmp\opess2>cd blank

C:\Users\figueirog\Documents\tmp\opess2\blank>ionic serve
Starting app-scripts server: --port 8100 --livereload-port 35729 --address 0.0.0.0 - Ctrl+C to cancel
[15:49:46]  watch started ...
[15:49:46]  build dev started ...
[15:49:46]  clean started ...
[15:49:46]  clean finished in less than 1 ms
[15:49:46]  copy started ...
[15:49:46]  transpile started ...
[15:49:49]  transpile finished in 3.27 s
[15:49:49]  preprocess started ...
[15:49:49]  deeplinks started ...
[15:49:49]  deeplinks finished in less than 1 ms
[15:49:49]  preprocess finished in 15 ms
[15:49:49]  webpack started ...
[15:49:50]  copy finished in 4.04 s
[15:50:01]  webpack finished in 11.89 s
[15:50:01]  sass started ...
[15:50:03]  sass finished in 1.96 s
[15:50:03]  postprocess started ...
[15:50:03]  postprocess finished in 46 ms
[15:50:03]  lint started ...
[15:50:03]  build dev finished in 17.24 s
[15:50:04]  watch ready in 17.56 s
[15:50:04]  dev server running: http://localhost:8100/

[15:50:11]  lint finished in 7.33 s

if i want to start a older Projekt (ionic 2) this happens:

C:\Users\figueirog\Documents\tmp\opess2>cd ..

C:\Users\figueirog\Documents\tmp>cd opess

C:\Users\figueirog\Documents\tmp\opess>ionic serve
[ERROR] Error occurred while loading plugins. CLI functionality may be limited.
        Checking for CLI updates now...
[ERROR] No updates found after plugin error--please report this issue.

C:\Users\figueirog\Documents\tmp\opess>

#4

Well, this is a bit confusing.

So /opess2 is an existing Ionic project that you want to ionic serveand this doesn’t work? (start typically refers to creating a new project…)

What is ionic info in /opess2? package.json?


#5

Sorry for the confusion … XD

but you gave me the right hint…

It was the package.json… i update the packages and now it works…

i also find this https://github.com/driftyco/ionic-cli/issues/2242

Thank you verry mutch!