Cannot find module 'geojson'


#1

Hi, I am getting this error!
I am using osmtogeojson module to convert osm data to geojson data.
My build falies with such messages. Please help!

home.ts: {
import osmtogeojson from ‘osmtogeojson’;
}

[20:17:00] transpile started …
[20:17:04] typescript: node_modules/osmtogeojson/index.d.ts, line: 1
Cannot find module ‘geojson’.

   L1:  import { FeatureCollection, Feature, GeometryObject } from 'geojson';

[20:17:04] ionic-app-script task: “build”
[20:17:04] Error: Failed to transpile program
Error: Failed to transpile program
at new BuildError (/usr/src/app/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28)
at /usr/src/app/node_modules/@ionic/app-scripts/dist/transpile.js:159:20
at new Promise ()
at transpileWorker (/usr/src/app/node_modules/@ionic/app-scripts/dist/transpile.js:107:12)
at Object.transpile (/usr/src/app/node_modules/@ionic/app-scripts/dist/transpile.js:64:12)
at /usr/src/app/node_modules/@ionic/app-scripts/dist/build.js:109:82
at
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! urbanRefuge@0.0.1 build: ionic-app-scripts build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the urbanRefuge@0.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/gitlab-runner/.npm/_logs/2018-05-19T20_17_04_340Z-debug.log
npm run build failed
Running after script…
$ run “clean-up”
Running Stage clean-up for Job: 5565743
ERROR: Job failed: exit status 1