Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.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 一揽子计划;省道到脚本重写器;这不是一种依赖_Dart_Auth0 - Fatal编程技术网

Dart 一揽子计划;省道到脚本重写器;这不是一种依赖

Dart 一揽子计划;省道到脚本重写器;这不是一种依赖,dart,auth0,Dart,Auth0,我刚开始学飞镖 首先,我从创建了一个基于angular2 dart的项目,它工作正常 现在我想从中添加auth0 lock dart包,因此我将pubspec.yaml修改为: name: go_dart_angular2_zingchart description: Go Dart Angular2 with ZingChart Started Kit version: 0.0.1 environment: sdk: '>=1.13.0 <2.0.0' dependencies

我刚开始学飞镖

首先,我从创建了一个基于angular2 dart的项目,它工作正常

现在我想从中添加auth0 lock dart包,因此我将pubspec.yaml修改为:

name: go_dart_angular2_zingchart
description: Go Dart Angular2 with ZingChart Started Kit
version: 0.0.1
environment:
  sdk: '>=1.13.0 <2.0.0'
dependencies:
  angular2: ^2.0.0-beta.18
  browser: ^0.10.0
  dart_to_js_script_rewriter: ^1.0.1
  auth0_lock: ^0.1.0
transformers:
- angular2:
    platform_directives:
    - 'package:angular2/common.dart#COMMON_DIRECTIVES'
    platform_pipes:
    - 'package:angular2/common.dart#COMMON_PIPES'
    entry_points: client/web/main.dart
- dart_to_js_script_rewriter
因为我是dart的新手,不太清楚自己在做什么。。我不知道如何修复此问题:)

有什么想法吗


谢谢

auth0\u lock:^0.1.0
添加到我的依赖项并运行
pub get
时,我会遇到相同的错误。错误消息表示“dart_to_js_script_rewriter”不是auth0_lock包的pubspec.yaml中的依赖项。它看起来像是添加在
开发依赖项下的。忽略任何依赖包的。Pub只获取包的开发依赖项

所以我认为这是他们方案中的一个问题

因此,我所做的是,我去克隆了这个包,将它添加到我自己的项目根目录中,该目录名为
auth0\u lock
。然后,在我的pubspec.yaml中,我提出:

auth0_lock:
    path: auth0_lock
之后,我可以使用

import 'package:auth0_lock/auth0_lock.dart';

auth0\u lock:^0.1.0
添加到我的依赖项并运行
pub get
时,我会遇到相同的错误。错误消息表示“dart_to_js_script_rewriter”不是auth0_lock包的pubspec.yaml中的依赖项。它看起来像是添加在
开发依赖项下的。忽略任何依赖包的。Pub只获取包的开发依赖项

所以我认为这是他们方案中的一个问题

因此,我所做的是,我去克隆了这个包,将它添加到我自己的项目根目录中,该目录名为
auth0\u lock
。然后,在我的pubspec.yaml中,我提出:

auth0_lock:
    path: auth0_lock
之后,我可以使用

import 'package:auth0_lock/auth0_lock.dart';
另见。这是
pub
的限制。讨论了如何支持
dev_transformers
,使transformers仅在构建包本身时为包运行,而不是在作为另一个包的依赖项构建包时运行。转换器仅在
auth0\u lock
中用作示例,用作依赖项时与此无关。另请参阅。这是
pub
的限制。讨论了如何支持
dev_transformers
,使transformers仅在构建包本身时为包运行,而不是在作为另一个包的依赖项构建包时运行。转换器仅在
auth0\u lock
中用作示例,用作依赖项时与此无关。