Typescript Error

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #25207

    dale c
    Participant

    Help please i cant seem to install dracular and all the others and get rid of the typescript error so i can move on ? im stuck here

    Error
    Close

    Typescript Error
    ‘SplashScreen’ refers to a value, but is being used as a type here.

    C:/Users/User/Documents/learnbook/phone app/6/proj6/src/app/app.component.ts

    private imgcacheService:ImgcacheService,

    public splashScreen: SplashScreen) {

    Typescript Error
    Cannot use namespace ‘DragulaService’ as a type.

    …s/User/Documents/learnbook/phone app/6/proj6/src/components/question/question.ts

    constructor(private config:ConfigService,

    private dragulaService: DragulaService) {

    Typescript Error
    ‘InAppBrowser’ refers to a value, but is being used as a type here.

    …r/Documents/learnbook/phone app/6/proj6/src/pages/course-status/course-status.ts

    public upload_assignment:UploadAssignmentService,

    private iab: InAppBrowser) {}

    Typescript Error
    ‘InAppBrowser’ refers to a value, but is being used as a type here.

    C:/Users/User/Documents/learnbook/phone app/6/proj6/src/pages/course/course.ts

    private loadingCtrl:LoadingController,

    private iab:InAppBrowser,

    private walletService: WalletService,

    Typescript Error
    ‘Camera’ refers to a value, but is being used as a type here.

    C:/Users/User/Documents/learnbook/phone app/6/proj6/src/pages/login/login.ts

    private alertCtrl:AlertController,

    private camera: Camera,

    private iab:InAppBrowser,

    Typescript Error
    ‘InAppBrowser’ refers to a value, but is being used as a type here.

    C:/Users/User/Documents/learnbook/phone app/6/proj6/src/pages/login/login.ts

    private camera: Camera,

    private iab:InAppBrowser,

    public appCtrl: App

    Typescript Error
    ‘Camera’ refers to a value, but is being used as a type here.

    C:/Users/User/Documents/learnbook/phone app/6/proj6/src/pages/profile/profile.ts

    private alertCtrl:AlertController,

    private camera: Camera,

    private iab:InAppBrowser

    Typescript Error
    ‘InAppBrowser’ refers to a value, but is being used as a type here.

    C:/Users/User/Documents/learnbook/phone app/6/proj6/src/pages/profile/profile.ts

    private camera: Camera,

    private iab:InAppBrowser

    ) {

    Typescript Error
    ‘Camera’ refers to a value, but is being used as a type here.

    …/Users/User/Documents/learnbook/phone app/6/proj6/src/pages/register/register.ts

    private alertCtrl:AlertController,

    private camera: Camera,

    private iab:InAppBrowser

    Typescript Error
    ‘InAppBrowser’ refers to a value, but is being used as a type here.

    …/Users/User/Documents/learnbook/phone app/6/proj6/src/pages/register/register.ts

    private camera: Camera,

    private iab:InAppBrowser

    ) {

    Typescript Error
    ‘Camera’ refers to a value, but is being used as a type here.

    …ments/learnbook/phone app/6/proj6/src/pages/uploadassignment/uploadassignment.ts

    public config:ConfigService,

    private camera: Camera,

    private storage:Storage,

    Typescript Error
    ‘FileTransfer’ refers to a value, but is being used as a type here.

    …ments/learnbook/phone app/6/proj6/src/pages/uploadassignment/uploadassignment.ts

    private action:ActionSheetController,

    private transfer: FileTransfer,

    private toastCtrl: ToastController,

    Typescript Error
    ‘Facebook’ refers to a value, but is being used as a type here.

    …/Users/User/Documents/learnbook/phone app/6/proj6/src/services/authentication.ts

    private config:ConfigService,

    public fb: Facebook,

    public loadingCtrl:LoadingController,

    Typescript Error
    ‘InAppBrowser’ refers to a value, but is being used as a type here.

    …/Users/User/Documents/learnbook/phone app/6/proj6/src/services/authentication.ts

    public toastCtrl:ToastController,

    private iab:InAppBrowser,

    private googlePlus: GooglePlus,

    Typescript Error
    ‘GooglePlus’ refers to a value, but is being used as a type here.

    …/Users/User/Documents/learnbook/phone app/6/proj6/src/services/authentication.ts

    private iab:InAppBrowser,

    private googlePlus: GooglePlus,

    private device: Device,

    Typescript Error
    ‘Device’ refers to a value, but is being used as a type here.

    …/Users/User/Documents/learnbook/phone app/6/proj6/src/services/authentication.ts

    private googlePlus: GooglePlus,

    private device: Device,

    private chatService:ChatService

    Typescript Error
    Property ‘applicationStorageDirectory’ does not exist on type ‘File’.

    C:/Users/User/Documents/learnbook/phone app/6/proj6/src/services/imageCache.ts

    private normalizeURlWKWview(url: string) {

    const urlIos = ${normalizeURL(this.file.applicationStorageDirectory)}Library/files/${normalizeURL(url)};

    return urlIos.replace(‘/localhost/persistent’, ”);

    Typescript Error
    Expected 0 arguments, but got 1.

    C:/Users/User/Documents/learnbook/phone app/6/proj6/src/services/imageCache.ts

    private getCachedFileURL(src: string): Observablestring> {

    return bindCallbackstring, string[]>(ImgCache.getCachedFileURL)(src)

    .pipe(

    Typescript Error
    Expected 0 arguments, but got 1.

    C:/Users/User/Documents/learnbook/phone app/6/proj6/src/services/imageCache.ts

    private cacheFile(src: string): Observablestring> {

    return bindCallbackstring, string>(ImgCache.cacheFile)(src);

    }

    Typescript Error
    Expected 0 arguments, but got 1.

    C:/Users/User/Documents/learnbook/phone app/6/proj6/src/services/imageCache.ts

    private isCached(src: string): Observablestring, boolean]> {

    return bindCallbackstring, [string, boolean]>(ImgCache.isCached)(src);

    }

    Typescript Error
    ‘InAppPurchase’ refers to a value, but is being used as a type here.

    C:/Users/User/Documents/learnbook/phone app/6/proj6/src/services/wallet.ts

    private config:ConfigService,

    private iap: InAppPurchase,

    private auth:AuthenticationService,

    Ionic Framework: 3.9.6 Ionic App Scripts: 3.2.4 Angular Core: ^6.0.3 Angular Compiler CLI: 7.2.15 Node: 10.15.3 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/74.0.3729.169 Safari/537.36

    #25230

    WPLMS
    Keymaster

    Can you try using the npm install instead of importing all the scripts one by one. Please check this video : https://www.youtube.com/watch?v=AQXzBH7fJvY

    We’re including a package.json file which has all the versions of the scripts which are to be included. you just need to put npm install after replacing the current package.json with the one provided in the download.

    #25295

    dale c
    Participant

    i did that and i got these errors

    http://prntscr.com/nubz7c

     

    http://prntscr.com/nuc022

     

    #25296

    dale c
    Participant

    #25297

    dale c
    Participant
    #25298

    Harry
    Spectator

    Hye
    Try this command “npm install node-sass” then follow other command

    #25301

    dale c
    Participant

    Holy crap npm install node-sass

    plus rest worked

    #25302

    dale c
    Participant

    why dont you put this up on the LMS ??? its easier to just update it dont you think ?? lol

    #25310

    Harry
    Spectator

    Hey
    but this error didn’t occur on all user,
    because if you start npm-install then this should be install node-sass as well

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.