'Heroku Deployment for dark sdk failure
git push heroku main
Enumerating objects: 194, done.
Counting objects: 100% (194/194), done.
Delta compression using up to 4 threads
Compressing objects: 100% (80/80), done.
Writing objects: 100% (194/194), 573.40 KiB | 52.13 MiB/s, done.
Total 194 (delta 96), reused 182 (delta 91), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Building on the Heroku-20 stack
remote: -----> Using buildpack: https://github.com/igrigorik/heroku-buildpack-dart.git
remote: -----> Dart app detected
remote: -----> ENV_DIR is /tmp/d20220524-53-gskxr2
remote: -----> ENV_DIR contains file DART_SDK_URL
remote: -----> ENV_DIR contains file DATABASE_URL
remote: -----> Welcome, this machine is: Linux 93210eae-7672-4ed3-94c7-325de3de1b60 4.4.0-1103-aws #108-Ubuntu SMP Mon Mar 28 22:40:07 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
remote: -----> Installing Dart VM via URL https://storage.googleapis.com/dart-archive/channels/stable/release/2.16.1/sdk/dartsdk-linux-x64-release.zip
remote: SDK: zip detected
remote: % Total % Received % Xferd Average Speed Time Time Time Current
remote: Dload Upload Total Spent Left Speed
remote: 100 188M 100 188M 0 0 141M 0 0:00:01 0:00:01 --:--:-- 141M
remote: -----> Copy Dart binaries to app root
remote: -----> Dart cmd found at -rwx------ 1 u33566 dyno 39618864 May 24 09:21 /app/dart-sdk/bin/dart
remote: -----> Dart reports version: Dart SDK version: 2.16.1 (stable) (Tue Feb 8 12:02:33 2022 +0100) on "linux_x64"
remote: PUBSPEC_PATH is not set. Looping through all pubspec.yaml files.
remote: building ./pubspec.yaml
remote: *** Found pubspec.yaml in /tmp/build_f91b0f0f/.
remote: *** Running pub get
remote: Pub 2.16.1
remote: Resolving dependencies...
remote: args 2.3.0 (2.3.1 available)
remote: collection 1.15.0 (1.16.0 available)
remote: crypto 3.0.1 (3.0.2 available)
remote: lints 1.0.1 (2.0.0 available)
remote: mime 1.0.1 (1.0.2 available)
remote: typed_data 1.3.0 (1.3.1 available)
remote: Downloading lints 1.0.1...
remote: Downloading postgres 2.4.3...
remote: Downloading args 2.3.0...
remote: Downloading alfred 0.1.5+3...
remote: Downloading sasl_scram 0.1.0...
remote: Downloading collection 1.15.0...
remote: Downloading crypto 3.0.1...
remote: Downloading buffer 1.1.1...
remote: Downloading queue 3.1.0+1...
remote: Downloading enum_to_string 2.0.1...
remote: Downloading mime_type 1.0.0...
remote: Downloading mime 1.0.1...
remote: Downloading saslprep 1.0.2...
remote: Downloading typed_data 1.3.0...
remote: Downloading unorm_dart 0.2.0...
remote: Downloading pedantic 1.11.1...
remote: Got dependencies!
remote: Resolving dependencies...
remote: + _fe_analyzer_shared 34.0.0 (40.0.0 available)
remote: + args 2.3.1
remote: + async 2.9.0
remote: + browser_launcher 1.1.0
remote: + build_daemon 3.1.0
remote: + built_collection 5.1.1
remote: + built_value 8.3.2
remote: + checked_yaml 2.0.1
remote: + collection 1.16.0
remote: + convert 3.0.1
remote: + crypto 3.0.2
remote: + dds 2.2.0
remote: + dds_service_extensions 1.3.0
remote: + devtools_shared 2.13.1
remote: + dwds 12.1.1 (14.0.2 available)
remote: + fixnum 1.0.1
remote: + http 0.13.4
remote: + http_multi_server 3.2.0
remote: + http_parser 4.0.1
remote: + io 1.0.3
remote: + json_annotation 4.5.0
remote: + json_rpc_2 3.0.1
remote: + logging 1.0.2
remote: + meta 1.8.0
remote: + mime 1.0.2
remote: + package_config 2.0.2
remote: + path 1.8.2
remote: + pedantic 1.11.1
remote: + pool 1.5.0
remote: + pub_semver 2.1.1
remote: + pubspec_parse 1.2.0
remote: + shelf 1.3.0
remote: + shelf_packages_handler 3.0.0
remote: + shelf_proxy 1.0.1
remote: + shelf_static 1.1.0
remote: + shelf_web_socket 1.0.1
remote: + source_maps 0.10.10
remote: + source_span 1.9.0
remote: + sse 4.1.0
remote: + stack_trace 1.10.0
remote: + stream_channel 2.1.0
remote: + stream_transform 2.0.0
remote: + string_scanner 1.1.1
remote: + term_glyph 1.2.0
remote: + typed_data 1.3.1
remote: + usage 4.0.2
remote: + uuid 3.0.6
remote: + vm_service 8.3.0
remote: + watcher 1.0.1
remote: + web_socket_channel 2.2.0
remote: + webdev 2.7.8 (2.7.9 available)
remote: + webkit_inspection_protocol 1.1.0
remote: + yaml 3.1.1
remote: Downloading webdev 2.7.8...
remote: Downloading stack_trace 1.10.0...
remote: Downloading sse 4.1.0...
remote: Downloading pool 1.5.0...
remote: Downloading dds 2.2.0...
remote: Downloading dds_service_extensions 1.3.0...
remote: Downloading shelf_static 1.1.0...
remote: Downloading shelf_proxy 1.0.1...
remote: Downloading browser_launcher 1.1.0...
remote: Downloading collection 1.16.0...
remote: Downloading shelf_web_socket 1.0.1...
remote: Downloading stream_channel 2.1.0...
remote: Downloading json_rpc_2 3.0.1...
remote: Downloading http_parser 4.0.1...
remote: Downloading convert 3.0.1...
remote: Downloading typed_data 1.3.1...
remote: Downloading string_scanner 1.1.1...
remote: Downloading yaml 3.1.1...
remote: Downloading webkit_inspection_protocol 1.1.0...
remote: Downloading pubspec_parse 1.2.0...
remote: Downloading checked_yaml 2.0.1...
remote: Downloading pub_semver 2.1.1...
remote: Downloading path 1.8.2...
remote: Downloading logging 1.0.2...
remote: Downloading io 1.0.3...
remote: Downloading http_multi_server 3.2.0...
remote: Downloading dwds 12.1.1...
remote: Downloading shelf_packages_handler 3.0.0...
remote: Downloading _fe_analyzer_shared 34.0.0...
remote: Downloading package_config 2.0.2...
remote: Downloading crypto 3.0.2...
remote: Downloading web_socket_channel 2.2.0...
remote: Downloading mime 1.0.2...
remote: Downloading built_collection 5.1.1...
remote: Downloading source_span 1.9.0...
remote: Downloading term_glyph 1.2.0...
remote: Downloading json_annotation 4.5.0...
remote: Downloading vm_service 8.3.0...
remote: Downloading shelf 1.3.0...
remote: Downloading meta 1.8.0...
remote: Downloading http 0.13.4...
remote: Downloading args 2.3.1...
remote: Downloading async 2.9.0...
remote: Downloading build_daemon 3.1.0...
remote: Downloading stream_transform 2.0.0...
remote: Downloading watcher 1.0.1...
remote: Downloading built_value 8.3.2...
remote: Downloading fixnum 1.0.1...
remote: Downloading uuid 3.0.6...
remote: Downloading source_maps 0.10.10...
remote: Downloading devtools_shared 2.13.1...
remote: Downloading usage 4.0.2...
remote: Building package executables...
remote: Failed to build webdev:webdev:
remote: /app/pub-cache/hosted/pub.dartlang.org/dwds-12.1.1/lib/src/services/chrome_proxy_service.dart:540:24: Error: The method 'ChromeProxyService.getSourceReport' has fewer named arguments than those of overridden method 'VmServiceInterface.getSourceReport'.
remote: Future<SourceReport> getSourceReport(String isolateId, List<String> reports,
remote: ^
remote: /app/pub-cache/hosted/pub.dartlang.org/vm_service-8.3.0/lib/src/vm_service.dart:846:24: Context: This is the overridden method ('getSourceReport').
remote: Future<SourceReport> getSourceReport(
remote: ^
remote: /app/pub-cache/hosted/pub.dartlang.org/dwds-12.1.1/lib/src/services/chrome_proxy_service.dart:540:24: Error: The method 'ChromeProxyService.getSourceReport' doesn't have the named parameter 'libraryFilters' of overridden method 'VmServiceInterface.getSourceReport'.
remote: Future<SourceReport> getSourceReport(String isolateId, List<String> reports,
remote: ^
remote: /app/pub-cache/hosted/pub.dartlang.org/vm_service-8.3.0/lib/src/vm_service.dart:846:24: Context: This is the overridden method ('getSourceReport').
remote: Future<SourceReport> getSourceReport(
remote: ^
remote: ! Push rejected, failed to compile Dart app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
i am trying to deploy my code to heroku but it showing this error during deployment how to resolve this error in previous versions deployment for the dart sdk is not showing this kind of error for heroku i am trying for about 2 to 3 days but always getting this kind of error please anybody can help name: serverproject description: A simple command-line application. version: 1.0.0
environment: sdk: '>=2.16.1 <3.0.0'
dependencies:
path: ^1.8.0
dev_dependencies: lints: ^1.0.0 dependencies: alfred: ^0.1.5+3 args: ^2.3.0
postgres: ^2.4.3
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
