Error when performing ionic Serve

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  Rohith V S N 1 week ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #24236

    Rohith V S N
    Participant

    Hi,
    I followed all the instrucitions and when I type ionic serve in cmd, I get the following error and in the browser it displays

    Cannot GET /

    IONIC SERVE ERROR:

    [ng] ERROR in ./src/theme/variables.scss (./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src??embedded!./node_modules/sass-loader/lib/loader.js??ref–14-3!./src/theme/variables.scss)
    [ng] Module build failed (from ./node_modules/sass-loader/lib/loader.js):
    [ng] undefined
    [ng] ^
    [ng]       File to import not found or unreadable: ionic.globals.
    [ng]       in h:\INZPIRA_Official\App\Android\Inzpira\Inzpira_1\src\theme\variables.scss (line 5, column 1)
    [ng] ERROR in node_modules/ionic-angular/umd/components/input/input.d.ts(3,10): error TS2305: Module ‘”h:/INZPIRA_Official/App/Android/Inzpira/Inzpira_1/node_modules/rxjs/Subject”‘ has no exported member ‘Subject’.
    [ng] node_modules/ionic-angular/umd/components/tabs/tabs.d.ts(2,10): error TS2305: Module ‘”h:/INZPIRA_Official/App/Android/Inzpira/Inzpira_1/node_modules/rxjs/Subject”‘ has no exported member ‘Subject’.
    [ng] src/app/app.component.ts(39,30): error TS2304: Cannot find name ‘SplashScreen’.
    [ng] src/components/question/question.ts(26,33): error TS2709: Cannot use namespace ‘DragulaService’ as a type.
    [ng] src/components/timer/timer.ts(2,9): error TS2305: Module ‘”h:/INZPIRA_Official/App/Android/Inzpira/Inzpira_1/node_modules/rxjs/Rx”‘ has no exported member ‘Observable’.
    [ng] src/directives/lazy-load.directive.ts(12,10): error TS2305: Module ‘”h:/INZPIRA_Official/App/Android/Inzpira/Inzpira_1/node_modules/rxjs/Subscription”‘ has no exported member ‘Subscription’.
    [ng] src/pages/course-status/course-status.ts(90,22): error TS2304: Cannot find name ‘InAppBrowser’.
    [ng] src/pages/course/course.ts(63,19): error TS2304: Cannot find name ‘InAppBrowser’.
    [ng] src/pages/directory/directory.ts(15,10): error TS2305: Module ‘”h:/INZPIRA_Official/App/Android/Inzpira/Inzpira_1/node_modules/rxjs/Observable”‘ has no exported member ‘Observable’.
    [ng] src/pages/directory/directory.ts(180,41): error TS2339: Property ‘debounceTime’ does not exist on type ‘Observable<any>’.
    [ng] src/pages/home/home.ts(30,10): error TS2305: Module ‘”h:/INZPIRA_Official/App/Android/Inzpira/Inzpira_1/node_modules/rxjs/Observable”‘ has no exported member ‘Observable’.
    [ng] src/pages/login/login.ts(67,25): error TS2709: Cannot use namespace ‘Camera’ as a type.
    [ng] src/pages/login/login.ts(68,21): error TS2304: Cannot find name ‘InAppBrowser’.
    [ng] src/pages/profile/profile.ts(95,25): error TS2709: Cannot use namespace ‘Camera’ as a type.
    [ng] src/pages/profile/profile.ts(96,21): error TS2304: Cannot find name ‘InAppBrowser’.
    [ng] src/pages/profile/profile.ts(763,40): error TS2709: Cannot use namespace ‘CameraOptions’ as a type.
    [ng] src/pages/profile/profile.ts(788,40): error TS2709: Cannot use namespace ‘CameraOptions’ as a type.
    [ng] src/pages/register/register.ts(66,25): error TS2709: Cannot use namespace ‘Camera’ as a type.
    [ng] src/pages/register/register.ts(67,21): error TS2304: Cannot find name ‘InAppBrowser’.
    [ng] src/pages/search/search.ts(49,39): error TS2339: Property ‘debounceTime’ does not exist on type ‘Observable<any>’.
    [ng] src/pages/unitcomment/unitcomment.ts(8,10): error TS2305: Module ‘”h:/INZPIRA_Official/App/Android/Inzpira/Inzpira_1/node_modules/rxjs/Observable”‘ has no exported member ‘Observable’.
    [ng] src/pages/uploadassignment/uploadassignment.ts(13,10): error TS2305: Module ‘”h:/INZPIRA_Official/App/Android/Inzpira/Inzpira_1/node_modules/rxjs/Observable”‘ has no exported member ‘Observable’.
    [ng] src/pages/uploadassignment/uploadassignment.ts(56,26): error TS2709: Cannot use namespace ‘Camera’ as a type.
    [ng] src/pages/uploadassignment/uploadassignment.ts(59,32): error TS2709: Cannot use namespace ‘FileTransfer’ as a type.
    [ng] src/pages/wallet/wallet.ts(12,10): error TS2305: Module ‘”h:/INZPIRA_Official/App/Android/Inzpira/Inzpira_1/node_modules/rxjs/Observable”‘ has no exported member ‘Observable’.
    [ng] src/services/activity.ts(6,10): error TS2305: Module ‘”h:/INZPIRA_Official/App/Android/Inzpira/Inzpira_1/node_modules/rxjs/Observable”‘ has no exported member ‘Observable’.
    [ng] src/services/authentication.ts(7,10): error TS2305: Module ‘”h:/INZPIRA_Official/App/Android/Inzpira/Inzpira_1/node_modules/rxjs/Observable”‘ has no exported member ‘Observable’.
    [ng] src/services/authentication.ts(49,20): error TS2304: Cannot find name ‘Facebook’.
    [ng] src/services/authentication.ts(52,21): error TS2304: Cannot find name ‘InAppBrowser’.
    [ng] src/services/authentication.ts(53,29): error TS2709: Cannot use namespace ‘GooglePlus’ as a type.
    [ng] src/services/authentication.ts(54,25): error TS2709: Cannot use namespace ‘Device’ as a type.
    [ng] src/services/authentication.ts(225,18): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/authentication.ts(334,14): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/authentication.ts(378,14): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/authentication.ts(404,16): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/authentication.ts(415,18): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/blog.ts(7,10): error TS2305: Module ‘”h:/INZPIRA_Official/App/Android/Inzpira/Inzpira_1/node_modules/rxjs/Observable”‘ has no exported member ‘Observable’.
    [ng] src/services/blog.ts(57,60): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/blog.ts(142,58): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/config.ts(548,14): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/config.ts(652,14): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/course.ts(5,10): error TS2305: Module ‘”h:/INZPIRA_Official/App/Android/Inzpira/Inzpira_1/node_modules/rxjs/Observable”‘ has no exported member ‘Observable’.
    [ng] src/services/course.ts(116,18): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/course.ts(163,14): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/course.ts(199,14): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/course.ts(236,14): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/course.ts(303,100): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/course.ts(349,18): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/course.ts(418,14): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/course.ts(459,14): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/course.ts(512,22): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/course.ts(594,157): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/coursecategories.ts(4,10): error TS2305: Module ‘”h:/INZPIRA_Official/App/Android/Inzpira/Inzpira_1/node_modules/rxjs/Observable”‘ has no exported member ‘Observable’.
    [ng] src/services/coursecategories.ts(38,14): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/coursecategories.ts(64,14): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/imageCache.ts(7,10): error TS2305: Module ‘”h:/INZPIRA_Official/App/Android/Inzpira/Inzpira_1/node_modules/rxjs/ReplaySubject”‘ has no exported member ‘ReplaySubject’.
    [ng] src/services/imageCache.ts(9,10): error TS2305: Module ‘”h:/INZPIRA_Official/App/Android/Inzpira/Inzpira_1/node_modules/rxjs/Observable”‘ has no exported member ‘Observable’.
    [ng] src/services/imageCache.ts(10,10): error TS2305: Module ‘”h:/INZPIRA_Official/App/Android/Inzpira/Inzpira_1/node_modules/rxjs/observable/bindCallback”‘ has no exported member ‘bindCallback’.
    [ng] src/services/imageCache.ts(76,46): error TS2339: Property ‘applicationStorageDirectory’ does not exist on type ‘File’.
    [ng] src/services/notes_discussions.ts(7,10): error TS2305: Module ‘”h:/INZPIRA_Official/App/Android/Inzpira/Inzpira_1/node_modules/rxjs/Observable”‘ has no exported member ‘Observable’.
    [ng] src/services/notes_discussions.ts(77,16): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/notes_discussions.ts(203,15): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/notes_discussions.ts(239,16): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/notes_discussions.ts(267,16): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/quiz.ts(4,10): error TS2305: Module ‘”h:/INZPIRA_Official/App/Android/Inzpira/Inzpira_1/node_modules/rxjs/Observable”‘ has no exported member ‘Observable’.
    [ng] src/services/status.ts(5,10): error TS2305: Module ‘”h:/INZPIRA_Official/App/Android/Inzpira/Inzpira_1/node_modules/rxjs/Observable”‘ has no exported member ‘Observable’.
    [ng] src/services/status.ts(84,22): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/status.ts(175,22): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/status.ts(270,18): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/status.ts(343,85): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/status.ts(407,22): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/upload_assignment.ts(7,10): error TS2305: Module ‘”h:/INZPIRA_Official/App/Android/Inzpira/Inzpira_1/node_modules/rxjs/Observable”‘ has no exported member ‘Observable’.
    [ng] src/services/upload_assignment.ts(58,19): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/upload_assignment.ts(81,14): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/upload_assignment.ts(104,15): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/users.ts(4,10): error TS2305: Module ‘”h:/INZPIRA_Official/App/Android/Inzpira/Inzpira_1/node_modules/rxjs/Observable”‘ has no exported member ‘Observable’.
    [ng] src/services/users.ts(107,18): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/users.ts(143,22): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/users.ts(207,10): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/users.ts(273,18): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/users.ts(308,18): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/users.ts(348,18): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/users.ts(404,26): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/users.ts(438,14): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/users.ts(489,10): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/users.ts(614,22): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/users.ts(652,22): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/users.ts(680,14): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/wallet.ts(19,10): error TS2305: Module ‘”h:/INZPIRA_Official/App/Android/Inzpira/Inzpira_1/node_modules/rxjs/Observable”‘ has no exported member ‘Observable’.
    [ng] src/services/wallet.ts(38,22): error TS2304: Cannot find name ‘InAppPurchase’.
    [ng] src/services/wallet.ts(81,18): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/wallet.ts(129,14): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/wallet.ts(184,14): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/wallet.ts(228,14): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng] src/services/wallet.ts(280,30): error TS2339: Property ‘map’ does not exist on type ‘Observable<Response>’.
    [ng]
    [ng] i 「wdm」: Failed to compile.

     

    Please help!

    #24698

    Scott Lang
    Keymaster

    Hi,

    Make sure you have followed instruction carefully .

    Also first you have to replace package.json file and rename node_modules folder then you run command: npm install

    #24700

    Rohith V S N
    Participant

    Hi, thank you for the reply.

    Can you explain, what should I rename node_module folder to ?

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Template Design © VibeThemes. All rights reserved.