Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/30.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular Travis Ci在ng构建时抛出错误_Angular_Travis Ci - Fatal编程技术网

Angular Travis Ci在ng构建时抛出错误

Angular Travis Ci在ng构建时抛出错误,angular,travis-ci,Angular,Travis Ci,经过在洛特的研究,我能够建立这个项目。但是在构建过程中,找不到外部JS。我怎样才能解决它 这是我的.travis.yml文件 sudo: required dist: trusty language: node_js node_js: - '7.4' addons: apt: sources: - google-chrome packages: - google-chrome-stable - google-chrome-beta before_insta

经过在洛特的研究,我能够建立这个项目。但是在构建过程中,找不到外部JS。我怎样才能解决它

这是我的.travis.yml文件

sudo: required
dist: trusty
language: node_js
node_js:
  - '7.4'

addons:
apt:
  sources:
    - google-chrome
  packages:
    - google-chrome-stable
    - google-chrome-beta

before_install:
  - export CHROME_BIN=chromium-browser
  - export DISPLAY=:99.0

  - sh -e /etc/init.d/xvfb start
  - "npm config set spin false"
  - "npm install -g npm@^2"

install:
  - npm install -g angular-cli
  - npm install -g karma
  - npm install
  - ng build

script: 
  - karma start karma.conf.js --single-run
以下是生成时遇到的错误

构建的原始版本:

错误是,找不到模块
fullcalendar
jQuery
,也找不到名称
$

下面是我如何在项目中使用外部js的示例

import { Options } from 'fullcalendar'
import * as $ from 'jquery';
import * as moment from 'moment';