Skip to content

Missing required path to database file during integration of latest sqlite-web #1060

@geheb

Description

@geheb

Describe the bug

Latest Integration of sqlite-web produces error. Due to breaking changes in sqlite-web:
coleifer/sqlite-web@49ccbea

Error: missing required path to database file.

Regression

No response

Steps to reproduce

In the AppHost.cs of the AppHost, I have the following code:


var builder = DistributedApplication.CreateBuilder(args);
var sqlite = builder.AddSqlite("Sqlite", null, "database.db")
    .WithSqliteWeb();

builder.Build().Run();

Expected behavior

No error within Container

Screenshots

No response

IDE and version

Other

IDE version

VS 2026

Nuget packages

CommunityToolkit.Aspire.Hosting.Sqlite 13.0

Additional context

Workaround, pass the file to the container:

var builder = DistributedApplication.CreateBuilder(args);
var sqlite = builder.AddSqlite("Sqlite", null, "database.db")
    .WithSqliteWeb(c =>
    {
        c.WithArgs("database.db");
    });

builder.Build().Run();

Help us help you

No, just wanted to report this

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions