I am trying to deploy a flutter web app to firebase using firebase deploy but I keep getting an error. This is the output from the deploy:
(node:5944) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
=== Deploying to 'deal-diligence-5de73'...
i deploying functions, hosting
Running command: npm --prefix "$RESOURCE_DIR" run lint
> lint
> eslint .
Oops! Something went wrong! :(
ESLint: 9.5.0
ESLint couldn't find an eslint.config.(js|mjs|cjs) file.
From ESLint v9.0.0, the default configuration file is now eslint.config.js.
If you are using a .eslintrc.* file, please follow the migration guide
to update your configuration file to the new format:
https://eslint.org/docs/latest/use/configure/migration-guide
If you still have problems after following the migration guide, please stop by
https://eslint.org/chat/help to chat with the team.
Error: functions predeploy error: Command terminated with non-zero exit code 2
This is output from flutter doctor -v:
[√] Flutter (Channel stable, 3.22.2, on Microsoft Windows [Version 10.0.22631.3593], locale en-US)
• Flutter version 3.22.2 on channel stable at C:deal_diligencedeal_diligenceflutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 761747bfc5 (2 weeks ago), 2024-06-05 22:15:13 +0200
• Engine revision edd8546116
• Dart version 3.4.3
• DevTools version 2.34.3
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain – develop for Android devices (Android SDK version 35.0.0)
• Android SDK at C:UsersNathan.KaneAppDataLocalAndroidsdk
• Platform android-35, build-tools 35.0.0
• Java binary at: C:Program FilesAndroidAndroid Studiojbrbinjava
• Java version OpenJDK Runtime Environment (build 17.0.10+0–11609105)
• All Android licenses accepted.
[√] Chrome – develop for the web
• Chrome at C:Program FilesGoogleChromeApplicationchrome.exe
[√] Visual Studio – develop Windows apps (Visual Studio Community 2022 17.10.3)
• Visual Studio at C:Program FilesMicrosoft Visual Studio2022Community
• Visual Studio Community 2022 version 17.10.35013.160
• Windows 10 SDK version 10.0.22621.0
[√] Android Studio (version 2024.1)
• Android Studio at C:Program FilesAndroidAndroid Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.10+0–11609105)
[√] VS Code (version 1.90.2)
• VS Code at C:UsersNathan.KaneAppDataLocalProgramsMicrosoft VS Code
• Flutter extension version 3.90.0
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22631.3593]
• Chrome (web) • chrome • web-javascript • Google Chrome 126.0.6478.114
• Edge (web) • edge • web-javascript • Microsoft Edge 126.0.2592.61
[√] Network resources
• All expected network resources are available.
• No issues found!
I have tried to migrate the config file but I don’t know if it worked.
How can I fix this error?
Thanks