flutter_eval icon indicating copy to clipboard operation
flutter_eval copied to clipboard

CompileError: Cannot find import 'package:flutter/cupertino.dart'

Open view-man opened this issue 5 months ago • 1 comments

CompileError: Cannot find import 'package:flutter/cupertino.dart' (while parsing 'package:kk/basic/common/cupertino_localizations_delegate.dart') at unknown

view-man avatar Jul 22 '25 07:07 view-man

Same issue.

Full log

dart_eval compile -o version_xxx.evc Loading files... Found binding file: .dart_eval/bindings/flutter_eval.json Adding packages from package config: _fe_analyzer_shared analyzer args async boolean_selector change_case characters checked_yaml clock collection convert crypto dart_eval dart_style directed_graph eval_annotation exception_templates fake_async ffi file flutter_lints glob http http_parser json_annotation lazy_memo leak_tracker leak_tracker_flutter_testing leak_tracker_testing lints matcher material_color_utilities meta package_config path path_provider path_provider_android path_provider_foundation path_provider_linux path_provider_platform_interface path_provider_windows platform plugin_platform_interface process pub_semver pubspec_parse quote_buffer source_span stack_trace stream_channel string_scanner sync_http term_glyph test_api typed_data vector_math vm_service watcher web webdriver xdg_directories yaml sky_engine flutter_driver flutter_test fuchsia_remote_debug_protocol integration_test flutter_eval Skipped package flutter because it is bridged.

Compiling package example... Parsing warning: Doc directive 'nodoc' is unknown. Unhandled exception: CompileError: Cannot find import 'package:flutter/cupertino.dart' (while parsing 'package:flutter_eval/src/widgets/icon.dart') at unknown #0 _resolveImportsAndExports. (package:dart_eval/src/eval/compiler/compiler.dart:993:16) #1 MappedListIterable.elementAt (dart:_internal/iterable.dart:435:31) #2 ListIterable.toSet (dart:_internal/iterable.dart:229:18) #3 _resolveImportsAndExports (package:dart_eval/src/eval/compiler/compiler.dart:995:12) #4 Compiler.compileSources (package:dart_eval/src/eval/compiler/compiler.dart:329:33) #5 Compiler.compile (package:dart_eval/src/eval/compiler/compiler.dart:167:12) #6 cliCompile (package:dart_eval/src/eval/cli/compile.dart:127:34) #7 main (file:///Users/D2C-sunil-m/.pub-cache/hosted/pub.dev/dart_eval-0.8.1/bin/dart_eval.dart:72:5) #8 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:295:33) #9 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)

sunilm316 avatar Aug 12 '25 07:08 sunilm316