首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >离子渗透模块

离子渗透模块
EN

Stack Overflow用户
提问于 2018-05-19 21:38:34
回答 1查看 60关注 0票数 0

我在home.ts文件中使用home.ts

从“osmtogeojson”进口osmtogeojson;

我把我的项目离子型链接-亲id project_id链接起来。推送代码git推离子主

但是,构建失败了

离子型应用程序脚本构建

代码语言:javascript
复制
[20:40:08]  ionic-app-scripts 3.1.9 
[20:40:08]  build dev started ... 
[20:40:08]  clean started ... 
[20:40:08]  clean finished in 2 ms 
[20:40:08]  copy started ... 
[20:40:08]  deeplinks started ... 
[20:40:08]  deeplinks finished in 65 ms 
[20:40:08]  transpile started ... 
[20:40:20]  typescript: node_modules/osmtogeojson/index.d.ts, line: 1 
            Cannot find module 'geojson'. 

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

[20:40:20]  ionic-app-script task: "build" 
[20:40:20]  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_40_20_995Z-debug.log
npm run build failed
Running after script...
$ run "clean-up"
Running Stage clean-up for Job: 5565766
ERROR: Job failed: exit status 1
EN

回答 1

Stack Overflow用户

发布于 2018-08-03 10:54:12

只要运行npm i geojson,您的问题就会得到解决

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50429707

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档