nikosportolos / babel

Translations management for Flutter apps
MIT License
1 stars 0 forks source link

Babel not working at all because of an exception #68

Open Achraf-cyber opened 1 month ago

Achraf-cyber commented 1 month ago

Whenever I run babel no matter the command, I get this error


Terminated with exception
    type 'String' is not a subtype of type 'Map<dynamic, dynamic>'
    #0      Loader._parseTranslationFile (package:babel/src/utils/loader.dart:72:53)
    #1      Loader.loadTranslationsFromPath (package:babel/src/utils/loader.dart:53:9)       
    #2      Loader.loadProjectFromPath (package:babel/src/utils/loader.dart:26:21)
    #3      new Babel.fromPath (package:babel/src/babel.dart:27:14)
    #4      ListAllCommand.execute (package:babel/cli/commands/list/all.dart:19:17)
    #5      BaseCommand.run (package:dart_cmder/src/interface/command.dart:137:13)
    <asynchronous suspension>
    #6      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
    <asynchronous suspension>
    #7      main (file:///C:/Users/HP/AppData/Local/Pub/Cache/hosted/pub.dev/babel-0.0.4-prerelease/bin/babel.dart:10:3)
    <asynchronous suspension>```
nikosportolos commented 10 hours ago

Hello @Achraf-cyber , thanks for reporting this. Could you please provide an example of the .arb file you are trying to parse and the version of Flutter SDK you are using?