You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[flutter_tools] _CastError in WebPlugin.fromYaml #117926
_CastError: type 'Null' is not a subtype of type 'String' in type cast
at new WebPlugin.fromYaml(platform_plugins.dart:548)
at new Plugin._fromMultiPlatformYaml(plugins.dart:142)
at new Plugin.fromYaml(plugins.dart:78)
at _pluginFromPackage(flutter_plugins.dart:63)
at findPlugins(flutter_plugins.dart:88)
at <asynchronous gap>(async)
at refreshPluginsList(flutter_plugins.dart:1080)
at <asynchronous gap>(async)
at FlutterProject.ensureReadyForPlatformSpecificTooling(project.dart:357)
at <asynchronous gap>(async)
at PackagesGetCommand.runCommand(packages.dart:179)
at <asynchronous gap>(async)
at FlutterCommand.run.<anonymous closure>(flutter_command.dart:1257)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at CommandRunner.runCommand(command_runner.dart:209)
at <asynchronous gap>(async)
at FlutterCommandRunner.runCommand.<anonymous closure>(flutter_command_runner.dart:283)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at FlutterCommandRunner.runCommand(flutter_command_runner.dart:229)
at <asynchronous gap>(async)
at run.<anonymous closure>.<anonymous closure>(runner.dart:64)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at main(executable.dart:91)
at <asynchronous gap>(async)
For now, I have downgraded to v3.3.10 and it is working fine.
So, the fix for this was merged to master, but has not yet reached stable. However, the "fix", as you can see here: https://github.com/flutter/flutter/pull/117939/files, was just to throw a more specific error. I'm guessing that a plugin is missing the fileName field, and the tool is now being more strict. You can temporarily check out the master channel, run flutter pub get on your app, and have the tool report exactly what you need to fix.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
krishh-apnaklub commentedon Feb 10, 2023
I have just upgraded the Flutter SDK from v3.3.7 to v3.7.3. I am still getting this error in the latest stable version (v3.7.3).
Command
Steps to Reproduce
flutter pub getcommand.Logs
_CastError: (#0 new WebPlugin.fromYaml (package:flutter_tools/src/platform_plugins.dart:548:34))
Flutter Application Metadata
Type: app
Creation channel: stable
Creation framework version: f4abaa0
For now, I have downgraded to v3.3.10 and it is working fine.
christopherfujino commentedon Feb 10, 2023
So, the fix for this was merged to master, but has not yet reached stable. However, the "fix", as you can see here: https://github.com/flutter/flutter/pull/117939/files, was just to throw a more specific error. I'm guessing that a plugin is missing the
fileNamefield, and the tool is now being more strict. You can temporarily check out themasterchannel, runflutter pub geton your app, and have the tool report exactly what you need to fix.github-actions commentedon Mar 3, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.