Skip to content

[v2.0] Can't run @fresh/init in alpha.30 #2941

@csvn

Description

@csvn

Trying to initialize a new project fails.

deno run -Ar jsr:@fresh/init@2.0.0-alpha.30

Produces error:

error: Uncaught (in promise) TypeError: Must be a file URL
    await Deno.readFile(
               ^
    at pathFromURL (ext:deno_web/00_infra.js:428:13)
    at Object.readFile (ext:deno_fs/30_fs.js:755:7)
    at initProject (https://jsr.io/@fresh/init/2.0.0-alpha.30/src/init.ts:397:16)
    at eventLoopTick (ext:core/01_core.js:178:7)
    at async https://jsr.io/@fresh/init/2.0.0-alpha.30/src/mod.ts:19:3

This seems to be caused by #2867, since the /www folder won't exist when @fresh/init runs.

Suggestions

Maybe just revert #2867, or create a /init/src/assets folder that either symlinks to the favicon, or is a copy of it?

Metadata

Metadata

Assignees

No one assigned

    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