Cannot find type definition file for ‘zen-observable'









up vote
0
down vote

favorite












I'm working with Ionic 3, I just choose aws default template and I get an error:



> ionic start app0 aws // aws is a default starting app in Ionic3 
> cd app0
> ionic serve


When I serve :



Error:



[app-scripts] [16:44:12] typescript: node_modules/aws-amplify/lib/PubSub/Providers/MqttOverWSProvider.d.ts, line: 2 
[app-scripts] Cannot find type definition file for 'zen-observable'.
[app-scripts] L1: import Client from 'paho-mqtt';
[app-scripts] L2: import * as Observable from 'zen-observable';
[app-scripts] L3: import AbstractPubSubProvider from './PubSubProvider';
[app-scripts] [16:44:12] typescript: node_modules/aws-amplify/lib/PubSub/Providers/PubSubProvider.d.ts, line: 1
[app-scripts] Cannot find type definition file for 'zen-observable'.
[app-scripts] L1: import * as Observable from 'zen-observable';
[app-scripts] L2: import PubSubProvider, ProvidertOptions from '../types';
[app-scripts] Cannot find type definition file for 'zen-observable'.
[app-scripts] [16:44:12] typescript: node_modules/aws-amplify/lib/PubSub/PubSub.d.ts, line: 1
[app-scripts] L1: import '../Common/Polyfills';
[app-scripts] L2: import * as Observable from 'zen-observable';
[app-scripts] [16:44:12] typescript: node_modules/aws-amplify/lib/PubSub/types/Provider.d.ts, line: 1
[app-scripts] Cannot find type definition file for 'zen-observable'.
[app-scripts] L1: import * as Observable from 'zen-observable';
[app-scripts] L2: import ProvidertOptions from './PubSub';


Ionic Info:




Ionic:



ionic (Ionic CLI) : 4.3.1



System:



NodeJS : v8.9.4
npm : 6.4.1
OS : Linux 4.13











share|improve this question

























    up vote
    0
    down vote

    favorite












    I'm working with Ionic 3, I just choose aws default template and I get an error:



    > ionic start app0 aws // aws is a default starting app in Ionic3 
    > cd app0
    > ionic serve


    When I serve :



    Error:



    [app-scripts] [16:44:12] typescript: node_modules/aws-amplify/lib/PubSub/Providers/MqttOverWSProvider.d.ts, line: 2 
    [app-scripts] Cannot find type definition file for 'zen-observable'.
    [app-scripts] L1: import Client from 'paho-mqtt';
    [app-scripts] L2: import * as Observable from 'zen-observable';
    [app-scripts] L3: import AbstractPubSubProvider from './PubSubProvider';
    [app-scripts] [16:44:12] typescript: node_modules/aws-amplify/lib/PubSub/Providers/PubSubProvider.d.ts, line: 1
    [app-scripts] Cannot find type definition file for 'zen-observable'.
    [app-scripts] L1: import * as Observable from 'zen-observable';
    [app-scripts] L2: import PubSubProvider, ProvidertOptions from '../types';
    [app-scripts] Cannot find type definition file for 'zen-observable'.
    [app-scripts] [16:44:12] typescript: node_modules/aws-amplify/lib/PubSub/PubSub.d.ts, line: 1
    [app-scripts] L1: import '../Common/Polyfills';
    [app-scripts] L2: import * as Observable from 'zen-observable';
    [app-scripts] [16:44:12] typescript: node_modules/aws-amplify/lib/PubSub/types/Provider.d.ts, line: 1
    [app-scripts] Cannot find type definition file for 'zen-observable'.
    [app-scripts] L1: import * as Observable from 'zen-observable';
    [app-scripts] L2: import ProvidertOptions from './PubSub';


    Ionic Info:




    Ionic:



    ionic (Ionic CLI) : 4.3.1



    System:



    NodeJS : v8.9.4
    npm : 6.4.1
    OS : Linux 4.13











    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm working with Ionic 3, I just choose aws default template and I get an error:



      > ionic start app0 aws // aws is a default starting app in Ionic3 
      > cd app0
      > ionic serve


      When I serve :



      Error:



      [app-scripts] [16:44:12] typescript: node_modules/aws-amplify/lib/PubSub/Providers/MqttOverWSProvider.d.ts, line: 2 
      [app-scripts] Cannot find type definition file for 'zen-observable'.
      [app-scripts] L1: import Client from 'paho-mqtt';
      [app-scripts] L2: import * as Observable from 'zen-observable';
      [app-scripts] L3: import AbstractPubSubProvider from './PubSubProvider';
      [app-scripts] [16:44:12] typescript: node_modules/aws-amplify/lib/PubSub/Providers/PubSubProvider.d.ts, line: 1
      [app-scripts] Cannot find type definition file for 'zen-observable'.
      [app-scripts] L1: import * as Observable from 'zen-observable';
      [app-scripts] L2: import PubSubProvider, ProvidertOptions from '../types';
      [app-scripts] Cannot find type definition file for 'zen-observable'.
      [app-scripts] [16:44:12] typescript: node_modules/aws-amplify/lib/PubSub/PubSub.d.ts, line: 1
      [app-scripts] L1: import '../Common/Polyfills';
      [app-scripts] L2: import * as Observable from 'zen-observable';
      [app-scripts] [16:44:12] typescript: node_modules/aws-amplify/lib/PubSub/types/Provider.d.ts, line: 1
      [app-scripts] Cannot find type definition file for 'zen-observable'.
      [app-scripts] L1: import * as Observable from 'zen-observable';
      [app-scripts] L2: import ProvidertOptions from './PubSub';


      Ionic Info:




      Ionic:



      ionic (Ionic CLI) : 4.3.1



      System:



      NodeJS : v8.9.4
      npm : 6.4.1
      OS : Linux 4.13











      share|improve this question













      I'm working with Ionic 3, I just choose aws default template and I get an error:



      > ionic start app0 aws // aws is a default starting app in Ionic3 
      > cd app0
      > ionic serve


      When I serve :



      Error:



      [app-scripts] [16:44:12] typescript: node_modules/aws-amplify/lib/PubSub/Providers/MqttOverWSProvider.d.ts, line: 2 
      [app-scripts] Cannot find type definition file for 'zen-observable'.
      [app-scripts] L1: import Client from 'paho-mqtt';
      [app-scripts] L2: import * as Observable from 'zen-observable';
      [app-scripts] L3: import AbstractPubSubProvider from './PubSubProvider';
      [app-scripts] [16:44:12] typescript: node_modules/aws-amplify/lib/PubSub/Providers/PubSubProvider.d.ts, line: 1
      [app-scripts] Cannot find type definition file for 'zen-observable'.
      [app-scripts] L1: import * as Observable from 'zen-observable';
      [app-scripts] L2: import PubSubProvider, ProvidertOptions from '../types';
      [app-scripts] Cannot find type definition file for 'zen-observable'.
      [app-scripts] [16:44:12] typescript: node_modules/aws-amplify/lib/PubSub/PubSub.d.ts, line: 1
      [app-scripts] L1: import '../Common/Polyfills';
      [app-scripts] L2: import * as Observable from 'zen-observable';
      [app-scripts] [16:44:12] typescript: node_modules/aws-amplify/lib/PubSub/types/Provider.d.ts, line: 1
      [app-scripts] Cannot find type definition file for 'zen-observable'.
      [app-scripts] L1: import * as Observable from 'zen-observable';
      [app-scripts] L2: import ProvidertOptions from './PubSub';


      Ionic Info:




      Ionic:



      ionic (Ionic CLI) : 4.3.1



      System:



      NodeJS : v8.9.4
      npm : 6.4.1
      OS : Linux 4.13








      angular npm ionic3






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 8 at 16:15









      Karim Garali

      226




      226






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          try this:



          npm install –save-dev @types/zen-observable
          npm install –save-dev @types/paho-mqtt





          share|improve this answer




















            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53211795%2fcannot-find-type-definition-file-for-zen-observable%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            try this:



            npm install –save-dev @types/zen-observable
            npm install –save-dev @types/paho-mqtt





            share|improve this answer
























              up vote
              0
              down vote













              try this:



              npm install –save-dev @types/zen-observable
              npm install –save-dev @types/paho-mqtt





              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                try this:



                npm install –save-dev @types/zen-observable
                npm install –save-dev @types/paho-mqtt





                share|improve this answer












                try this:



                npm install –save-dev @types/zen-observable
                npm install –save-dev @types/paho-mqtt






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 9 at 17:35









                Richard Zhang

                24514




                24514



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53211795%2fcannot-find-type-definition-file-for-zen-observable%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown