GoogleCloudPlatform / functions-framework-dart

FaaS (Function as a service) framework for writing portable Dart functions
https://pub.dev/packages/functions_framework
Apache License 2.0
533 stars 54 forks source link

BuildRunner seems to break the code #426

Closed mark-dropbear closed 11 months ago

mark-dropbear commented 11 months ago

This is the diff of running the build runner along with the error message in the terminal. I should note this is a blank template from the hello world example. image

kevmoo commented 11 months ago

Are you running Dart 3 or later?

mark-dropbear commented 11 months ago
dart --version
Dart SDK version: 3.0.7 (stable) (None) on "linux_x64"
kevmoo commented 11 months ago

Oh! Do you have your SDK constraint set to ^3.0.0? That enables the new features!

mark-dropbear commented 11 months ago

Well spotted. But worth pointing out that is the default output of running dartfn at the moment. Screenshot 2023-08-12 00 28 15

kevmoo commented 11 months ago

Great catch ! I need to deploy a new dartfn!

mark-dropbear commented 11 months ago

I really love the package by the way. Hope it continues to find more users but I actually consider it one of the better starting places on the internet for a new project. Simple interface, deeply integrated to GCP / Firebase, nothing to manage. It's nice, thank you again.

kevmoo commented 11 months ago

See https://github.com/GoogleCloudPlatform/functions-framework-dart/pull/430