EddyVerbruggen / nativescript-directions

:point_up_2: :point_right: :point_down: :point_left: Open the Maps app to show directions to anywhere you like
MIT License
83 stars 21 forks source link

Error after installed web pack #10

Closed dzfweb closed 7 years ago

dzfweb commented 7 years ago

I've installed web pack on my project and then i'm getting the following error.

ERROR in ./modules/pack.address/pack.address.component.ts Module not found: Error: Can't resolve 'nativescript-directions' in 'C:\dev\fm-transportes\src\FM.Transportes\app\modules\pack.address' @ ./modules/pack.address/pack.address.component.ts 13:17-51 @ ./app.module.ts @ ./main.ts

pack.address.component.ts

import { Component } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { DatabaseService, Package, Pack, Order, Address, PackStatus, State } from '../shared';
let Directions = require("nativescript-directions").Directions;

@Component({
    moduleId: module.id,
    selector: 'pack-address',
    templateUrl: './pack.address.component.html',
    styleUrls: ['./pack.address.component.css'],
})
export class PackAddressComponent {
...

Is the nativescript-directions plugin compatible ? I also opened an issue on the web pack page

https://github.com/NativeScript/nativescript-dev-webpack/issues/81

EddyVerbruggen commented 7 years ago

It should be, but I see this change has not been pushed to npm. Please retry with 1.0.5.