Unable to install ( or just use ) geolib in component.
martinbarilik opened this issue · 1 comments
martinbarilik commented
Hi, no idea what it is but i can't make this lib working in my project.
Ember-cli 2.18, using: npm install geolib --save
adds
"dependencies": {
"bower": "^1.8.8",
"ember-cli": "~2.18.2",
"ember-cli-less": "3.0.1",
"geolib": "^3.3.1",
"simple-array-diff": "^1.1.0"
},
to package.json. Then in my component at the very begininig:
import { getDistance } from 'geolib';
i get error ( even tho it's not used yet )
loader.js:247 Uncaught Error: Could not find module
geolib imported from
Also, if i add import line to any of my js file, it prints errors like
Assertion Failed: Expected component:my-component to resolve to an Ember.component
martinbarilik commented
it turned out i was missing ember-auto-import as i am using ember 2.18. Closing