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

Issue while using in angular 6 #22

Closed monikagupta78 closed 6 years ago

monikagupta78 commented 6 years ago

I am getting this error - while trying to add this module in angular 6 component.

Module not found: Error: Can't resolve 'nativescript-directions'

I did install the plugin in my app using :, also i can see this in my node modules folder. tns plugin add nativescript-directions

this is the exact error : ERROR in ./src/app/app.module.ts Module not found: Error: Can't resolve 'nativescript-directions' in 'D:\projects\ng-maps\src\app' ERROR in ./src/app/directions/directions.component.ts Module not found: Error: Can't resolve 'nativescript-directions' in 'D:\projects\ng-maps\src\app\directions'

in app.module.ts i have imported like this import { Directions } from "nativescript-directions";

In IDE , It is not showing any errors.

Any inputs pls.

EddyVerbruggen commented 6 years ago

This Angular 6 app uses this plugin, check it out: https://github.com/EddyVerbruggen/nativescript-pluginshowcase

monikagupta78 commented 6 years ago

I have similar configuration, can't figure out what is the problem.

EddyVerbruggen commented 6 years ago

How can I, without your repo?

monikagupta78 commented 6 years ago

I can upload my code in github, will share the link.

On Wed, Aug 1, 2018 at 2:05 PM Eddy Verbruggen notifications@github.com wrote:

How can I, without your repo?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/EddyVerbruggen/nativescript-directions/issues/22#issuecomment-409496624, or mute the thread https://github.com/notifications/unsubscribe-auth/AIa7NPhjKejbLWWW8NiYgn62ZlHNGRwYks5uMWhLgaJpZM4Vn6ES .

monikagupta78 commented 6 years ago

I uploaded my code here. https://github.com/monikagupta78/ng-maps

you need to do npm install , may be plungin install as well as i had to do. tns plugin add nativescript-directions

after this when i do ng serve, getting that error.

Thanks Monika

On Wed, Aug 1, 2018 at 3:31 PM Monika Gupta monikagupta78@gmail.com wrote:

I can upload my code in github, will share the link.

On Wed, Aug 1, 2018 at 2:05 PM Eddy Verbruggen notifications@github.com wrote:

How can I, without your repo?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/EddyVerbruggen/nativescript-directions/issues/22#issuecomment-409496624, or mute the thread https://github.com/notifications/unsubscribe-auth/AIa7NPhjKejbLWWW8NiYgn62ZlHNGRwYks5uMWhLgaJpZM4Vn6ES .