Pergunta

Dart's guide on Polymer suggests creating a build.dart file in the root directory. The first line is an import to polymer/builder.dart

import 'package:polymer/builder.dart';

Since polymer.builder.dart does not exist the build file throws and errors and is thus moot. What am I doing wrong here?

My pubspec.yaml is as follow:

name: JSONPiler
description: A compiler written in Dart

dependencies:
polymer: any
poppy: any
logging: 0.9.1

Foi útil?

Solução

Using build.dart for build Dart to Javascript is outdated.

use pub build and pub serve with a transformers configuration:

transformers:
- polymer:
    entry_points:
    - web/alarm.html

Configuring the Built-in dart2js Transformer

build.dart and polymers builder.dart are still supported.
I don't know why your installation can't find builder.dart.
The file should be in your application directory packages/polmyer/builder.dart (Polymer 0.10.0-pre.2)

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top