Savory / Danet

The most mature backend framework for Deno. Create awesome HTTP and WebSocket server as well as KVQueue workers !
https://danet.land
Other
269 stars 18 forks source link

Fresh Layouts are not working with Danet #69

Closed btd1337 closed 11 months ago

btd1337 commented 1 year ago

Describe the bug

When adding a Fresh project to Deno, the Fresh Layouts don't work, both when using Fresh from the root and from a given path.


Fresh Project

Captura de Tela 2023-09-24 às 13 55 50

Fresh into Danet

Captura de Tela 2023-09-24 às 13 56 19

Expected My layout for root routes including a header, footer, and content inside the main tag.

Console Logs

$ deno task launch-server

The manifest has been generated for 8 routes and 0 islands.
Sun, 24 Sep 2023 16:41:02 GMT [Injector]  Bootstraping DatabaseModule
Sun, 24 Sep 2023 16:41:02 GMT [Injector]  Bootstraping TodoModule
Sun, 24 Sep 2023 16:41:02 GMT [Router]  Registering TodoController todo
Sun, 24 Sep 2023 16:41:02 GMT [Router]  Registering [GET] /todo
Sun, 24 Sep 2023 16:41:02 GMT [Router]  Registering [GET] /todo/:id
Sun, 24 Sep 2023 16:41:02 GMT [Router]  Registering [POST] /todo
Sun, 24 Sep 2023 16:41:02 GMT [Router]  Registering [PUT] /todo/:id
Sun, 24 Sep 2023 16:41:02 GMT [Router]  Registering [DELETE] /todo/:id
Sun, 24 Sep 2023 16:41:02 GMT [Injector]  Bootstraping AppModule
Sun, 24 Sep 2023 16:41:02 GMT [Router]  Registering AppController /
Sun, 24 Sep 2023 16:41:02 GMT [Router]  Registering [GET] /
Sun, 24 Sep 2023 16:41:02 GMT [DanetApplication]  Listening on 3000
[uncaught application error]: Http - connection closed before message completed

    at Object.respondWith (ext:deno_http/01_http.js:334:25)
    at eventLoopTick (ext:core/01_core.js:197:13)
[uncaught application error]: Http - connection closed before message completed

request: {
  url: "http://localhost:3000/_frsh/alive",
  method: "GET",
  hasBody: false
}
response: { status: 200, type: undefined, hasBody: true, writable: false }

    at Object.respondWith (ext:deno_http/01_http.js:334:25)
    at eventLoopTick (ext:core/01_core.js:197:13)