gpt4 book ai didi

Dart 应用找不到 index.bootstrap.initialize.dart

转载 作者:行者123 更新时间:2023-12-05 01:16:28 46 4
gpt4 key购买 nike

我不确定为什么在尝试启动我的应用时出现以下错误:

调试

GET http://localhost:63342/epimss_polymer_app/web/index.bootstrap.initialize.dart 

发布服务

Build error:
Transform Reflectable on epimss_polymer_app|ReflectableTransformed threw error: The null object does not have a getter 'type'.

NoSuchMethodError: method not found: 'type'
Receiver: null
Arguments: []
dart:core-patch/object_patch.dart 42 Object._noSuchMethod
dart:core-patch/object_patch.dart 45 Object.noSuchMethod
package:reflectable/src/transformer_implementation.dart 2397 _Capabilities._supportsMeta.<fn>
...

Build completed with 1 errors.
[web] GET index.bootstrap.initialize.dart => Could not find asset epimss_polymer_app|web/index.bootstrap.initialize.dart.

公共(public)规范

name: 'epimss_polymer_app'
version: 0.1.0
description: A web app built using polymer.dart.
#author:
#homepage: https://www.example.com

environment:
sdk: '>=1.9.0 <2.0.0'

dependencies:
analyzer: 0.27.1
autonotify_observe: 1.0.0+7

browser: 0.10.0+2
bwu_fontawesome_iconset_svg: 0.3.0-3

epimss_polymer_clerking:
path: ../epimss_polymer_clerking
epimss_polymer_reg:
path: ../epimss_polymer_reg

polymer: 1.0.0-rc.15
polymer_elements: 1.0.0-rc.8
polymer_interop: 1.0.0-rc.8

quiver_collection: 1.0.0

shared:
path: ../../../../dart/shared/shared

web_components: 0.12.2+2

dependency_overrides:
reflectable: ^0.5.1

dev_dependencies:
test: 0.12.6+2

transformers:
- autonotify_observe
- web_components:
entry_points: web/index.html
- reflectable:
entry_points: web/index.bootstrap.initialize.dart
- $dart2js:
$include: '**/*.bootstrap.initialize.dart'
minify: true
commandLineOptions:
- --trust-type-annotations
- --trust-primitives

我正在使用当前的 Dart SDK

最佳答案

如果你有最新的 Polymer 版本试试

transformers:
- autonotify_observe
- polymer:
entry_points: web/index.html

代替

transformers:
- autonotify_observe
- web_components:
entry_points: web/index.html
- reflectable:
entry_points: web/index.bootstrap.initialize.dart

关于Dart 应用找不到 index.bootstrap.initialize.dart,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34954862/

46 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com