当我在飞镖中执行任何程序时,它显示以下错误
无法加载资源:服务器响应状态为404(未找到) http://mydomain.com/UrlPro/web/packages/chrome/bootstrap.js
HTML
<html>
<head>
<meta charset="utf-8">
<title>UrlPro</title>
<link rel="stylesheet" href="urlpro.css">
</head>
<body>
<h1>UrlPro</h1>
<p>Hello world from Dart!</p>
<script src="packages/browser/dart.js"></script>
<script src="packages/chrome/bootstrap.js" defer></script>
<script src="urlpro.dart" type="application/dart"></script>
</body>
</html>
pubspec.yaml
name: UrlPro
description: A sample Chrome packaged application
dependencies:
browser: any
transformers:
Dart版本Dart编辑器版本1.3.6.release(STABLE)Dart SDK版本1.3.6
答案 0 :(得分:0)
你错过了pubspec.yaml中的chrome包。