Skip to content

Conversation

chimon2000
Copy link
Contributor

Update the example with a full dart project that includes references to nitric.

Notes:

I noticed that the API does not currently work with nitric start which produces the following error:

ERROR   unable to create build context for service file bin/example.dart: nitric does not support files with extension .dart by default

Attempting to use dart run also produces a weird error:

Unhandled exception:
gRPC Error (code: 12, codeName: UNIMPLEMENTED, message: unknown service nitric.proto.resources.v1.Resources, details: [], rawResponse: null, trailers: {})

@davemooreuws
Copy link
Member

davemooreuws commented Feb 21, 2024

Looks like the runtime function here will need updating to include dart: https://github.com/nitrictech/cli/blob/8a3de5180bb274d9571c99b18e12834f33fdf166/pkg/project/runtime/runtime.go#L162

We will take a look shortly, or feel free to do a PR.

Add barrel exports to the `resources` and `api` folders and export those from the root `lib` level.

This should remove analysis errors when referencing private modules.
Update example with a full dart project that includes references to nitric.
@davemooreuws davemooreuws merged commit 648dfda into nitrictech:main Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants