I get error with the bootstrap version 3.3.7. When I update bootstrap to 4.0.0, error goes away but I do not want to update as there are lot of breaking changes.
Resolving dependencies...
Package html has no versions that match >=0.12.2+1 <0.13.0 derived from:
- analyzer 0.29.11 depends on version >=0.12.0 <1.14.0
- angular 4.0.0+2 depends on version >=0.12.0 <0.14.0
- dart_to_js_script_rewriter 1.0.1 depends on version ^0.12.2+1
This is my pubspec.yml
environment:
sdk: '>=1.24.0 <2.0.0'
dependencies:
angular: ^4.0.0+2
angular_forms: ^1.0.0
angular_router: ^1.0.2
angular_components: ^0.6.0
json_object: any
http: any
html: any
angular_dart_ui_bootstrap: '>=0.0.1'
ng_bootstrap: ^0.8.5
bootstrap: "^3.3.7"
dartson: "^0.2.7"
browser_detect: "^1.0.4"
archive: "^1.0.33"
build: "^0.11.0"
intl: "^0.15.6"
stream_transformers: "^0.3.0"
rxdart: "^0.10.2"
dev_dependencies:
browser: ^0.10.0
dart_to_js_script_rewriter: ^1.0.1
test: ^0.12.0
angular_test: ^1.0.0
transformers:
- dartson
- angular:
entry_points:
- web/main.dart
- test/**_test.dart
test/pub_serve:
$include: test/**_test.dart
dart_to_js_script_rewriter
Related
I'm tring to update my libs, i got to start, but i'm getting this error and now I have no idea where or how to fix.
https://pastebin.com/cTGmBjKY
environment:
sdk: '>=2.0.0 <3.0.0'
dependencies:
ng_bootstrap: ^1.1.1
angular: ^5.3.0
angular_components: ^0.13.0+1
angular_forms: ^2.1.1
angular_router: ^2.0.0-alpha+21
rxdart: ^0.20.0
firebase: ^5.0.3
googleapis: ^0.52.0
googleapis_auth: ^0.2.5+2
service_worker: ^0.2.3
sass: ^1.5.0
markdown: ^2.0.2
intl: ^0.15.8
dev_dependencies:
sass_builder: ^2.0.0
angular_test: ^2.2.0
build_runner: ^1.2.3
build_test: ^0.10.3
build_web_compilers: ^2.1.0
test: ^1.0.0
webdev-2.0.7
Does anyone have any ideas?
build_web_compilers 2.x and Dart SDK 2.3 are broken around JS interop. The next SDK release should fix it - in the mean time you'll want to downgrade back to build_web_compilers ^1.0.0
So I've tried generate classes DI classes for the inject.dart using flutter generate
It seems to generate classes under lib/* but not for test/*. It does not throw any error as such. Here are my relevant flutter classes.
pubspec.yaml
name: gc_client
description: A gc
version: 1.0.0+1
environment:
sdk: ">=2.1.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
json_annotation: ^2.0.0
rxdart: ^0.22.0
dio: ^2.1.3
inject:
path: ./inject.dart/package/inject
builders:
json_serializable: ^2.0.0
inject_generator:
path: ./inject.dart/package/inject_generator
dev_dependencies:
test: 1.6.1
flutter_test:
sdk: flutter
mockito: ^4.0.0
flutter:
uses-material-design: true
fonts:
- family: Raleway
fonts:
- asset: assets/fonts/raleway_regular.ttf
- asset: assets/fonts/raleway_medium.ttf
weight: 700
assets:
- assets/
Component classes
Am I missing something? Let me know if you need more info. Thanks in advance.
The issue is with the build runner.
Here's a relevant fix for the same
https://github.com/flutter/flutter/issues/33266
Trying to incorporate the web3dart package into my project. When I run pub get I receive the error:
web3dart ^0.3.0 requires build_runner ^0.8.0.
When I change build_runner to ^0.8.0 my project will not build and I get the error:
The build_runner version – 0.8.3 – is not within the allowed
constraint – >=0.8.10 <0.10.0.
Appears I'm in a bind, in need of advice on how to proceed.
pubspec.yaml for reference:
environment:
sdk: '>=2.0.0-dev.67.0 <3.0.0'
dependencies:
angular: ^5.0.0-beta
angular_components: ^0.9.0-beta
angular_forms: ^2.0.0-beta
angular_router: ^2.0.0-alpha+15
firebase: ^5.0.0
json_serializable: ^0.5.2
web3dart: ^0.3.0
dev_dependencies:
angular_test: ^2.0.0-beta
build_runner: ^0.9.0
build_test: ^0.10.2
build_web_compilers: ^0.4.0
sass_builder: ^2.0.0
test: ^1.0.0
Today I started trying advice from #matanlurey in git#676 (https://github.com/dart-lang/angular/issues/676). In my project pubspec.yaml file:
environment:
sdk: '>=1.24.0 <2.0.0'
dependencies:
angular: ^5.0.0-alpha
angular_components: ^0.9.0-alpha
angular_forms: ^1.0.1-alpha
angular_router: ^2.0.0-alpha
browser: ^0.10.0
dart_to_js_script_rewriter: ^1.0.1
sass_builder: ^1.0.0
but Resolving dependencies...
Incompatible version constraints on angular:
- angular_components 0.9.0-alpha depends on version 5.0.0-alpha
- angular_forms 1.0.1-alpha depends on version ^5.0.0-alpha
- angular_router 2.0.0-alpha depends on version ^4.0.0
- huastecappadmin depends on version ^5.0.0-alpha
Process finished with exit code 1
Any Idea?
You can try to add
dependency_overrides:
angular: ^5.0.0-alpha
but it might not work.
In this case you'd need to wait until an update for angular_router that is compatible with Angular 5 is released.
See also https://github.com/dart-lang/angular/issues/676
I have found Migration guide (https://www.polymer-project.org/1.0/docs/migration.html). My Dart project does not use bower but pubspec.yaml and when I changed dependencies version for PaperElements I get message: paper_elements has no versions that match >=1.0.0
environment:
sdk: '>=0.8.10+6 <2.0.0'
dependencies:
browser: '>=0.10.0+2'
code_transformers: any
core_elements: '>=0.6.0'
dnd: any
logging: '>=0.9.3'
paper_elements: '>=1.0.0'
polymer: any
polymer_intl: any
vector_math: any
transformers:
- polymer:
entry_points:
web/index.html
inline_stylesheets:
packages/polymer/src/build/log_injector.css: false
- $dart2js:
minify: true
How to upgrade?
update
https://pub.dartlang.org/packages/polymer_elements
(ignore the deprecated comment in the readme)
original
There are no 1.0 elements for Dart yet.
This is work in progress and before they are not published there is no way to use them the way you did previously.
You can use the Polymer.js elements in the meantime of course but then you have to use bower and dart-js-interop.