alephjs / aleph.js

The Full-stack Framework in Deno.

Home Page:https://alephjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Uncaught (in promise) TypeError: serverEntry.startsWith is not a function

vikaskaliramna0 opened this issue · comments

commented
  1. Initialized project
  2. Didn't change anything and used command deno task dev
  3. Don't know why I get this error.
error: Uncaught (in promise) TypeError: serverEntry.startsWith is not a function
    ? serverEntry.startsWith("file://") ? path.fromFileUrl(serverEntry) : path.resolve(serverEntry)
                  ^
    at dev (https://deno.land/x/aleph@1.0.0-beta.36/server/dev.ts:91:19)
    at file:///C:/Users/Administrator/WebstormProjects/project04/dev.ts:3:1
  • EDIT : This error does not occur in command deno task start.
commented

which template are you using?

  1. Initialized project
  2. Didn't change anything and used command deno task dev
  3. Don't know why I get this error.
error: Uncaught (in promise) TypeError: serverEntry.startsWith is not a function
    ? serverEntry.startsWith("file://") ? path.fromFileUrl(serverEntry) : path.resolve(serverEntry)
                  ^
    at dev (https://deno.land/x/aleph@1.0.0-beta.36/server/dev.ts:91:19)
    at file:///C:/Users/Administrator/WebstormProjects/project04/dev.ts:3:1
  • EDIT : This error does not occur in command deno task start.

You should update your server.ts, deno.json import_map.json, because some breaking changes :)

commented

the new dev task command is: "deno run -A https://deno.land/x/aleph@1.0.0-beta.37/dev.ts", now you don't need the dev.ts file

commented

React with Markdown Support.

commented

React with Markdown Support.

1.0.0-beta.38 should work fine

commented

thanks, I will surely try it.