Migration Ionic3

Iā€™m playing with the Ionic 4 beta and following the steps in the document, as a first step, try to load the css of my application, add it to the global.scss file and add my variables to the theme/variables.scss file, however, I get the error that the variable is not defined.

Also, create a new project like this:

ionic start myApp blank --type=angular

And when wanting to run the command ionic serve, ionic generate I receive the error

Cannot perform Ionic serve/watch for project type: angular.

please check your system config.
ā€“ ionic info
ā€“ ng -v
ā€“ npm -v
ā€“ node -v

for ionic start myApp blank --type=angular check min needs for project env.
and follow step in below link

1 Like

ionic info

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.3
    ionic (Ionic CLI) : 3.20.1

global packages:

    cordova (Cordova CLI) : 8.0.0 

local packages:

    Cordova Platforms : none


    ios-deploy : 1.9.2 
    Node       : v8.10.0
    npm        : 5.6.0 
    OS         : macOS
    Xcode      : Xcode 10.1 Build version 10B61

ng -v

Angular CLI: 7.1.4
Node: 8.10.0
OS: darwin x64
Angular: 7.1.4
... cli, common, compiler, compiler-cli, core, forms, http
... language-service, platform-browser, platform-browser-dynamic
... router

Package                           Version
@angular-devkit/architect         0.11.4
@angular-devkit/build-angular     0.11.4
@angular-devkit/build-optimizer   0.11.4
@angular-devkit/build-webpack     0.11.4
@angular-devkit/core              7.1.4
@angular-devkit/schematics        7.1.4
@ngtools/webpack                  7.1.4
@schematics/angular               7.1.4
@schematics/update                0.11.4
rxjs                              6.3.3
typescript                        3.1.6
webpack                           4.23.1

npm -v


node -v


You need to update node to 10 and your ionic cli to latest version(currently 4.6.0)