nylo-core / nylo

Nylo is the fastest way to build your next Flutter mobile app. Streamline your projects with Nylo's opinionated approach to building Flutter apps. Develop your next idea ⚡️

Home Page:https://nylo.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LocalDataException when building new Nylo project

jplata opened this issue · comments

Just started getting this issue on new installs of nylo.

Screenshot 2024-01-05 at 11 02 56 AM

I'm confused as too why, as dateformat isnt called anywhere in the scaffold.

Hi @jplata,

Could you run flutter--version from the console?

I'll take a look

Flutter 3.16.5 • channel stable • https://github.com/flutter/flutter.git Framework • revision 78666c8dc5 (2 weeks ago) • 2023-12-19 16:14:14 -0800 Engine • revision 3f3e560236 Tools • Dart 3.2.3 • DevTools 2.28.4

Thanks

Hi @jplata,

I'm also on the same version for Flutter and Dart, it works fine.

Can you try to install it again from the https://nylo.dev website? If you hit run, out of the box, it should yield the same results I'm getting.

Flutter 3.16.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 78666c8dc5 (3 weeks ago) • 2023-12-19 16:14:14 -0800
Engine • revision 3f3e560236
Tools • Dart 3.2.3 • DevTools 2.28.4

Thanks,

Just installed brand new:

git clone https://github.com/nylo-core/nylo.git nylo_app

Installed dependencies with flutter pub get.

Ran into same error when running. I re-ran again without debugging, and was able to get more details on the error, if this helps:

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: LocaleDataException: Locale data has not been initialized, call initializeDateFormatting(<locale>). #0 UninitializedLocaleData._throwException (package:intl/src/intl_helpers.dart:81:5) #1 UninitializedLocaleData.containsKey (package:intl/src/intl_helpers.dart:75:7) #2 DateFormat.localeExists (package:intl/src/intl/date_format.dart:824:28) #3 verifiedLocale (package:intl/src/intl_helpers.dart:186:19) #4 new DateFormat (package:intl/src/intl/date_format.dart:267:27) #5 NyDateTime.toDateTimeString (package:nylo_support/helpers/extensions.dart:143:17) #6 NyLogger._loggerPrint (package:nylo_support/helpers/helper.dart:422:50) #7 NyLogger.error (package:nylo_support/helpers/helper.dart:386:5) #8 NyStorage.read (package:nylo_support/helpers/helper.dart:210:18) <asynchronous suspension> #9 _DefaultListener.handle (package:nylo_support/events/sync_auth_to_backpack.dart:22:18) <asynchronous<…>

Thanks @jplata,

Last question (sorry), what kind of device are you trying to build for?
E.g. Android Pixel 6 Simulator or IOS iPhone 15 Real device

IPhone 14 Pro Simulator (iOS 16.4)

@agordn52 FWIW, i just tried on iPhone 13 Simulator and did not have an issue.

That's bizarre! I think know what's happening though.

Tomorrow I'll do an investigation, I appreciate your help on this 🙂

Hi @jplata,

I appreciate you helping me debug this one.
I've recently created a new release nylo_framework ^5.18.9 which should fix that issue.

Let me know if that resolves the problem for you when you get a chance, thanks :)

hi @agordn52 I'm also facing the same one

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: LocaleDataException: Locale data has not been initialized, call initializeDateFormatting(<locale>). E/flutter ( 3006): #0 UninitializedLocaleData._throwException (package:intl/src/intl_helpers.dart:81:5) E/flutter ( 3006): #1 UninitializedLocaleData.containsKey (package:intl/src/intl_helpers.dart:75:7) E/flutter ( 3006): #2 DateFormat.localeExists (package:intl/src/intl/date_format.dart:824:28) E/flutter ( 3006): #3 verifiedLocale (package:intl/src/intl_helpers.dart:186:19) E/flutter ( 3006): #4 new DateFormat (package:intl/src/intl/date_format.dart:267:27) E/flutter ( 3006): #5 NyDateTime.toDateTimeString (package:nylo_support/helpers/extensions.dart:143:17) E/flutter ( 3006): #6 NyLogger._loggerPrint (package:nylo_support/helpers/helper.dart:425:50) E/flutter ( 3006): #7 NyLogger.info (package:nylo_support/helpers/helper.dart:393:5) E/flutter ( 3006): #8 NyRouter._addRoute (package:nylo_support/router/router.dart:148:16) E/flutter ( 3006): #9 NyRouter.route (package:nylo_support/router/router.dart:128:10) E/flutter ( 3006): #10 appRouter.<anonymous closure> (package:flutter_app/routes/router.dart:118:14) E/flutter ( 3006): #11 nyRoutes (package:nylo_support/router/router.dart:29:8) E/flutter ( 3006): #12 appRouter (package:flutter_app/routes/router.dart:42:16) E/flutter ( 3006): #13 RouteProvider.boot (package:flutter_app/app/providers/route_provider.dart:7:20) E/flutter ( 3006): #14 bootApplication (package:nylo_support/providers/providers.dart:17:39) E/flutter ( 3006): <asynchronous suspension> E/flutter ( 3006): #15 Boot.nylo (package:flutter_app/bootstrap/boot.dart:6:39) E/flutter ( 3006): <asynchronous suspension> E/flutter ( 3006): #16 Nylo.init (package:nylo_support/nylo.dart:271:13) E/flutter ( 3006): <asynchronous suspension> E/flutter ( 3006): #17 main (package:flutter_app/main.dart:10:15) E/flutter ( 3006): <asynchronous suspension> E/flutter ( 3006):

Hi @jitendravn,

Are you on the latest version nylo_framework ^5.18.9?

Can you check your pubspec.yaml file.

@agordn52 I'm On 5.18.7

Hi @jitendravn,

Can you upgrade to nylo_framework ^5.18.9?

That should fix the issue 👍

@agordn52 its done . working perfectly

Thanks for confirming at @jitendravn,

Closing this issue.