Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.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
Dart聚合:将html文件绑定到脚本会导致bootstrap.Dart中包含“%1”的错误5C“;人物_Dart_Polymer_Smoke - Fatal编程技术网

Dart聚合:将html文件绑定到脚本会导致bootstrap.Dart中包含“%1”的错误5C“;人物

Dart聚合:将html文件绑定到脚本会导致bootstrap.Dart中包含“%1”的错误5C“;人物,dart,polymer,smoke,Dart,Polymer,Smoke,在执行Pub Get和Pub升级后,我的自定义关系不再工作。在我看来 <script type="application/dart" src="view.dart"></script> /web/dialog/error/view.dart import 'package:polymer/polymer.dart'; import '../view.dart'; // <- the base class 'DialogView' @CustomTag('er

在执行Pub Get和Pub升级后,我的自定义关系不再工作。在我看来

<script type="application/dart" src="view.dart"></script>
/web/dialog/error/view.dart

import 'package:polymer/polymer.dart';
import '../view.dart'; // <- the base class 'DialogView'

  @CustomTag('error-view')
  class ErrorView extends DialogView{

    ErrorView.created() : super.created(){
    componentName = 'error-view';
    this.dialogtitle = 'System Error';
  }

}
import 'package:polymer/polymer.dart';
import 'dart:html';
import 'package:intl/intl.dart';

import '../locale/de.dart' as de;

class DialogView extends PolymerElement {
   @observable int page;
   //there are a lot of helper functions and variables in here
}

我使用了许多对这些组件来扩展基本组件(它没有view.html,但只有一个view.dart,允许我在一个列表中保存和操作不同的对话框。在我执行发布获取/升级之前,这项工作非常顺利,但没有通过修复缓存来解决。使用类似结构的项目仍然可以正常工作。

这就解决了目前的问题:

公开发行


code_transformers:“如果它是在
发布升级之后启动的
请尝试从命令行运行
发布缓存修复
。请确保您没有按照此回答中所述执行操作。“发布缓存修复”并不能解决问题。您链接问题的答案似乎是关于从聚合元素的html视图链接到dart文件,其中我不这样做-除了在它的“控制器”的末尾。我将更新我的问题以显示一些代码。当你在Dartium中使用pub-serve运行它(从DartEditor启动)时,是否会收到任何错误/警告?使用pub-serve构建它不会生成任何警告并成功完成。之后不久,我得到
[web]GET/dialog%5Cview.dart=>在工具输出中找不到资产symconf | web/dialog%5Cview.dart.
,在index.html中是等效的
加载资源失败:服务器响应状态为404(未找到)   http://localhost:8080/dialog%5Cview.dart<代码>我不知道,考虑创建bug报告,你是否创建了bug报告?谢谢!这解决了我遇到的问题。
import 'package:polymer/polymer.dart';
import 'dart:html';
import 'package:intl/intl.dart';

import '../locale/de.dart' as de;

class DialogView extends PolymerElement {
   @observable int page;
   //there are a lot of helper functions and variables in here
}