library does not work: leafletjs Uncaught Error: Can not find module "leaflet" ionic 3?

1

This is what it is called from the main page:

import { Component } from '@angular/core';
import { NavController, NavParams } from 'ionic-angular';
import L from "leaflet";

Use the reference to this page: link

    
asked by joselo 09.11.2018 в 13:46
source

2 answers

1

Thank you very much I had to install it again and it just worked, and now it runs, install it outside of my project that's why I did not recognize, install the following command in my project:

npm install leaflet --save

Thanks to everyone

    
answered by 09.11.2018 в 16:00
0

Hello for the error does not find the library, the most possible is that you have not installed.

npm install -S leaflet

    
answered by 09.11.2018 в 14:24