jvandemo / jvandemo/generator-angular2-library

import { Map } from 'leaflet'; becomes import { Map } from 'leaflet/index'; which is wrong

Open
#184 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
740
Forks
116
PR merge metrics
No merged PRs in 30d

Description

Other imports work just fine, but when the the lib is built, the import calls from the source code undergoes the change in the title. This then results in an error when using the library, because it can't resolve how to import from 'leaflet/index' (since it doesn't exist). Any way to fix this for now?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.