我正在尝试用travis-CI配置我的flutter应用程序,但我想不出一个方法来做到这一点。 我用以下代码测试了我的.travis.yaml文件 - linux
sudo: false
addons:
apt:
# Flutter depends on /usr/lib/x86_64-linux-gnu/libstdc++.so.6 version GLIBCXX_3.4.18
sources:
- ubuntu-toolchain-r-test # if we don't specify this, the libstdc++6 we get
在我当前的travis-ci文件中,我有这样的配置。
注意:我想自定义这个文件,因为我在vendor/cache中没有任何内容。因为在travis-ci的构建上出现了错误。
0.44s$ bundle install --local
Some gems seem to be missing from your vendor/cache directory.
Could not find rake-10.5.0 in any of the sources
The command "bundle install --local" failed and exited with 7 d
我正在使用$cacheFactory将一些数据保存在缓存中,直到今天,一切都很正常,我决定将cacheFactory分离成一个名为MyFactory.js的类。现在我发现了一个错误:
TypeError: tableCacheFactory is not a function
因为注射是一种简单的方法,有人知道我是不是漏掉了什么吗?
main.js
angular.module('main-component',
['my-component',
'my-cache-factory'
]);
MyFactory.js
an
我有一个缓存服务,我想在其中存储数据。
angular.module('core').service('markerCache', function(){
var cache = [];
this.set_cache = function(arr){
cache = arr;
this.cached = true;
};
this.cached = false; //this must be read-only and must be property, not function
});
如果可能的
在我的Angular 9(所有最新的东西)中,我使用了几个自己的库。这些库使用“路径”属性包含在tsconfig.json中,然后在应用程序中使用它。
我创建了一个新的库,它使用了Angular Cdk库中的大量CdkPortal,在编译导入该库的根应用程序时,我得到了以下错误信息。在此之前,我自己编译库,并且没有编译错误:
Compiling cap-gui-components : module as esm5
Error: Error on worker #1: Error: Failed to find exported name of node (CapGuiSettings
关于模块的声明有两种引导方式--动态和静态。它们仅在main.ts中配置。
// The browser platform with a compiler
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
// The app module
import { AppModule } from './app.module';
// Compile and launch the module
platformBrowserDynamic().bootstrapM
我刚刚将我的应用从Angular 8升级到Angular 9。在这个版本(9)中,使用Angular特性的类必须有一个合适的Angular装饰器。但是,我有一个组件是@Component({...})。但是在我运行ng serve的地方,它告诉我: The class 'MyComponent' is listed in the declarations of the NgModule 'MyModule',
but is not a directive, a component, or a pipe.
Either remove it from the Ng
我在一个es6-module-loader项目中使用了这个Angular 2,它非常适合在web浏览器中实时加载TypeScript模块。现在,我正在将这个项目升级到Angular 6,但是这里没有满足加载模块的imports的依赖关系。例如:
declare var SystemLoader:any;
export class DemoClass {
constructor() {
var source = "export class Foo { " +
"constructor() { console.log('Created the
我已经将travis-ci集成到了我的GitHub帐户()中。
当我将@angular/cli版本从1.7.4更新到6.0.0-rc.3时,构建开始失败时出错:
Local workspace file ('angular.json') could not be found.
Error: Local workspace file ('angular.json') could not be found.
at WorkspaceLoader._getProjectWorkspaceFilePath (/home/travis/build/pradeep0
我正在尝试这个关于Highcharts的演示应用程序。我从两个网站上找到了相同的代码,并尝试了一下,但在这两个网站上,我都捕捉到了相同的错误。
ERROR in src/app/app.module.ts:11:5 - error NG6001: Cannot declare 'Highchar
tsChartComponent' in an NgModule as it's not a part of the current compilation.
11 HighchartsChartComponent
~~~~~~~