souzadriano / ionic2-google-places-autocomplete

Other
8 stars 5 forks source link

Error: Cannot find name 'Observable' #1

Closed Pazitos10 closed 7 years ago

Pazitos10 commented 7 years ago

Hi there! I'm trying to use ionic-google-places along with ionic 3.6.0 and when I run: ionic serve I'm having the following error:

bug

Here's my ionic info command output:

cli packages: (~/my_project/node_modules)                                                                       

    @ionic/cli-plugin-cordova       : 1.6.2                                                                                                           
    @ionic/cli-plugin-ionic-angular : 1.4.1                                                                                                           
    @ionic/cli-utils                : 1.7.0                                                                                                           
    ionic (Ionic CLI)               : 3.7.0                                                                                                           

global packages:                                                                                                                                      

    Cordova CLI : 7.0.1 

local packages:

    @ionic/app-scripts : 1.3.0
    Cordova Platforms  : android 6.2.3
    Ionic Framework    : ionic-angular 3.6.0

System:

    Android SDK Tools : 26.0.2
    Node              : v8.2.1
    OS                : Linux 4.12
    npm               : 5.3.0 

I think its caused by this import (in that file):

    import { Observable } from 'rxjs/observable';

A temporary solution for me was to manually modify that file importing 'Rx' instead of 'observable' so the error message dissapear, but I was hoping you could solve it in the source code.

    import { Observable } from 'rxjs/Rx';

Thanks in advance!

souzadriano commented 7 years ago

Thank you for reporting.

I will fix it soon to be compatible with ionic 3.6.

souzadriano commented 7 years ago

Fixed on version 1.0.1 with:

import { Observable } from 'rxjs/Rx';

Thank you @Pazitos10

Closing