Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run with valid yaml #28

Open
UlasKasim opened this issue May 24, 2020 · 0 comments
Open

Cannot run with valid yaml #28

UlasKasim opened this issue May 24, 2020 · 0 comments

Comments

@UlasKasim
Copy link

UlasKasim commented May 24, 2020

When I try to run flutter web app with flutter_money_formatter i get this error, if i delete flutter_money_formatter from pubspec.yaml file, it compiles

Launching lib/main.dart on Chrome in debug mode...
Unhandled exception:
NoSuchMethodError: The getter 'path' was called on null.
Receiver: null
Tried calling: path
�[38;5;244m#0      Object.noSuchMethod  (dart:core-patch/object_patch.dart:53:5)�[39;49m
�[38;5;248m#1      JavaScriptBundler.compile  (package:frontend_server/src/javascript_bundle.dart:150:65)�[39;49m
�[38;5;244m<asynchronous suspension>�[39;49m
�[38;5;248m#2      FrontendCompiler.writeJavascriptBundle  (package:frontend_server/frontend_server.dart:627:20)�[39;49m
�[38;5;244m<asynchronous suspension>�[39;49m
�[38;5;248m#3      FrontendCompiler.compile  (package:frontend_server/frontend_server.dart:533:15)�[39;49m
�[38;5;244m<asynchronous suspension>�[39;49m
�[38;5;248m#4      _FlutterFrontendCompiler.compile  (package:flutter_frontend_server/server.dart:40:22)�[39;49m
�[38;5;248m#5      listenAndCompile.<anonymous closure>  (package:frontend_server/frontend_server.dart:1164:26)�[39;49m
�[38;5;244m#6      _RootZone.runUnaryGuarded  (dart:async/zone.dart:1374:10)�[39;49m
�[38;5;244m#7      _BufferingStreamSubscription._sendData  (dart:async/stream_impl.dart:339:11)�[39;49m
�[38;5;244m#8      _BufferingStreamSubscription._add  (dart:async/stream_impl.dart:266:7)�[39;49m
�[38;5;244m#9      _SinkTransformerStreamSubscription._add  (dart:async/stream_transformers.dart:70:11)�[39;49m
�[38;5;244m#10     _EventSinkWrapper.add  (dart:async/stream_transformers.dart:17:11)�[39;49m
�[38;5;244m#11     _StringAdapterSink.add  (dart:convert/string_conversion.dart:238:11)�[39;49m
�[38;5;244m#12     _LineSplitterSink._addLines  (dart:convert/line_splitter.dart:152:13)�[39;49m
�[38;5;244m#13     _LineSplitterSink.addSlice  (dart:convert/line_splitter.dart:127:5)�[39;49m
�[38;5;244m#14     StringConversionSinkMixin.add  (dart:convert/string_conversion.dart:165:5)�[39;49m
�[38;5;244m#15     _SinkTransformerStreamSubscription._handleData  (dart:async/stream_transformers.dart:122:24)�[39;49m
�[38;5;244m#16     _RootZone.runUnaryGuarded  (dart:async/zone.dart:1374:10)�[39;49m

�[38;5;244m#17     _BufferingStreamSubscription._sendData  (dart:async/stream_impl.dart:339:11)�[39;49m
�[38;5;244m#18     _BufferingStreamSubscription._add  (dart:async/stream_impl.dart:266:7)�[39;49m
�[38;5;244m#19     _SinkTransformerStreamSubscription._add  (dart:async/stream_transformers.dart:70:11)�[39;49m
�[38;5;244m#20     _EventSinkWrapper.add  (dart:async/stream_transformers.dart:17:11)�[39;49m

�[38;5;244m#21     _StringAdapterSink.add  (dart:convert/string_conversion.dart:238:11)�[39;49m
�[38;5;244m#22     _StringAdapterSink.addSlice  (dart:convert/string_conversion.dart:243:7)�[39;49m
�[38;5;244m#23     _Utf8ConversionSink.addSlice  (dart:convert/string_conversion.dart:315:20)�[39;49m
�[38;5;244m#24     _Utf8ConversionSink.add  (dart:convert/string_conversion.dart:308:5)�[39;49m
�[38;5;244m#25     _ConverterStreamEventSink.add  (dart:convert/chunked_conversion.dart:74:18)�[39;49m
�[38;5;244m#26     _SinkTransformerStreamSubscription._handleData  (dart:async/stream_transformers.dart:122:24)�[39;49m
�[38;5;244m#27     _RootZone.runUnaryGuarded  (dart:async/zone.dart:1374:10)�[39;49m

�[38;5;244m#28     _BufferingStreamSubscription._sendData  (dart:async/stream_impl.dart:339:11)�[39;49m
�[38;5;244m#29     _BufferingStreamSubscription._add  (dart:async/stream_impl.dart:266:7)�[39;49m

�[38;5;244m#30     _SyncStreamControllerDispatch._sendData  (dart:async/stream_controller.dart:779:19)�[39;49m
�[38;5;244m#31     _StreamController._add  (dart:async/stream_controller.dart:655:7)�[39;49m
�[38;5;244m#32     _StreamController.add  (dart:async/stream_controller.dart:597:5)�[39;49m
�[38;5;244m#33     _Socket._onData  (dart:io-patch/socket_patch.dart:1999:41)�[39;49m
�[38;5;244m#34     _RootZone.runUnaryGuarded  (dart:async/zone.dart:1374:10)�[39;49m

�[38;5;244m#35     _BufferingStreamSubscription._sendData  (dart:async/stream_impl.dart:339:11)�[39;49m
�[38;5;244m#36     _BufferingStreamSubscription._add  (dart:async/stream_impl.dart:266:7)�[39;49m

�[38;5;244m#37     _SyncStreamControllerDispatch._sendData  (dart:async/stream_controller.dart:779:19)�[39;49m
�[38;5;244m#38     _StreamController._add  (dart:async/stream_controller.dart:655:7)�[39;49m
�[38;5;244m#39     _StreamController.add  (dart:async/stream_controller.dart:597:5)�[39;49m
�[38;5;244m#40     new _RawSocket.<anonymous closure>  (dart:io-patch/socket_patch.dart:1544:33)�[39;49m

�[38;5;244m#41     _NativeSocket.issueReadEvent.issue  (dart:io-patch/socket_patch.dart:1036:14)�[39;49m
�[38;5;244m#42     _microtaskLoop  (dart:async/schedule_microtask.dart:43:21)�[39;49m
�[38;5;244m#43     _startMicrotaskLoop  (dart:async/schedule_microtask.dart:52:5)�[39;49m
�[38;5;244m#44     _runPendingImmediateCallback  (dart:isolate-patch/isolate_patch.dart:118:13)�[39;49m
�[38;5;244m#45     _RawReceivePortImpl._handleMessage  (dart:isolate-patch/isolate_patch.dart:169:5)�[39;49m

the Dart compiler exited unexpectedly.
Exited (sigterm)
Failed to compile application.

My pubspec.yaml

environment:
  sdk: ">=2.7.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  flutter_localizations:
    sdk: flutter
  logger: ^0.9.1
  redux:
  redux_thunk:
  redux_persist: ^0.8.4
  redux_persist_web: ^0.8.2
  flutter_redux:
  http:
  web_socket_channel: ^1.1.0
  rxdart:
  shared_preferences: ^0.5.7+1
  universal_html: ^1.2.2
  flutter_screenutil: ^0.5.3
  intl: ^0.16.1
  flutter_money_formatter:
    git:
      url: git://github.com/anisalibegic/flutter_money_formatter.git
dev_dependencies:
  flutter_test:
    sdk: flutter
flutter:

Flutter Doctor -v
[✓] Flutter (Channel beta, 1.18.0-11.1.pre, on Mac OS X 10.15.4 19E287, locale tr-TR)
• Flutter version 1.18.0-11.1.pre at /Users/ulaskasim/Documents/development/flutter
• Framework revision 2738a1148b (11 days ago), 2020-05-13 15:24:36 -0700
• Engine revision ef9215ceb2
• Dart version 2.9.0 (build 2.9.0-8.2.beta)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/ulaskasim/Library/Android/sdk
• Platform android-29, build-tools 29.0.2
• ANDROID_HOME = /Users/ulaskasim/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.3.1, Build version 11C504
• CocoaPods version 1.8.4

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 42.1.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] VS Code (version 1.45.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.10.2

[✓] Connected device (2 available)
• Web Server • web-server • web-javascript • Flutter Tools
• Chrome • chrome • web-javascript • Google Chrome 81.0.4044.138

• No issues found!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant