Skip to content

Failed: Export of name 'ngx-places' not found! #2

@DuaneQ

Description

@DuaneQ

Sorry if this is how to reach out with an issue. First...thanks for the resolution for the google places mock issue. I tried that and now I'm getting the following error:

Failed: Export of name 'ngx-places' not found! Error: Export of name 'ngx-places' not found!

`import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { IonicModule } from '@ionic/angular';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { AddItineraryPage } from './add-itinerary.page';
import { RouterTestingModule } from '@angular/router/testing';

describe('AddItineraryPage', () => {
let component: AddItineraryPage;
let fixture: ComponentFixture;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ AddItineraryPage ],
imports: [IonicModule.forRoot(), FormsModule, ReactiveFormsModule, RouterTestingModule]
}).compileComponents();

fixture = TestBed.createComponent(AddItineraryPage);
component = fixture.componentInstance;
fixture.detectChanges();

}));

it('should create', () => {
expect(component).toBeTruthy();
});
});
`
MY HTML:

<input style="width: 100%; border: transparent;" required formControlName="destination" type="text" placeholder="Add a Destination" [class.invalid]="!itineraryForm.controls['destination'].valid && itineraryForm.controls['destination'].touched" ngx-google-places-autocomplete [options]='options' #placesRef="ngx-places" (onAddressChange)="handleCityChange($event)" />
Any idea how to resolve this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions