aleph.js: "Get Started" instructions are broken

I just tried to do exactly what the instructions from https://alephjs.org/docs/get-started say:

deno install --unstable -A -f -n aleph https://deno.land/x/aleph@v0.2.28/cli.ts
aleph init hello
cd hello
aleph dev

But that resulted on this error:

error: Uncaught (in promise) TypeError: Cannot set property navigator of #<Window> which has only a getter
        Object.assign(globalThis, {
               ^
    at Function.assign (<anonymous>)
    at Project._init (https://deno.land/x/aleph@v0.2.28/project.ts:600:16)
    at async https://deno.land/x/aleph@v0.2.28/project.ts:106:13
    at async start (https://deno.land/x/aleph@v0.2.28/server.ts:12:5)

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 13
  • Comments: 24 (4 by maintainers)

Most upvoted comments

@macorifice same as me. I think it’s tracked in #195

@vincent-olivert-riera @RazerMoon @borsemayur2 i’m so sorry, currently you should use v0.2.28 + deno 1.6.3, the alpha versions is super unstable…the next patch (beta.1) i’m working on it should be more stable! PR: https://github.com/alephjs/aleph.js/pull/176

I just tried to do exactly what the instructions from https://alephjs.org/docs/get-started say:

deno install --unstable -A -f -n aleph https://deno.land/x/aleph@v0.2.28/cli.ts
aleph init hello
cd hello
aleph dev

But that resulted on this error:

error: Uncaught (in promise) TypeError: Cannot set property navigator of #<Window> which has only a getter
        Object.assign(globalThis, {
               ^
    at Function.assign (<anonymous>)
    at Project._init (https://deno.land/x/aleph@v0.2.28/project.ts:600:16)
    at async https://deno.land/x/aleph@v0.2.28/project.ts:106:13
    at async start (https://deno.land/x/aleph@v0.2.28/server.ts:12:5)

Use aleph version v0.3.0-alpha.8 instead of v0.2.28 like: deno install --unstable -A -f -n aleph https://deno.land/x/aleph@v0.3.0-alpha.8/cli.ts

@konsumer you’re right! I only saw the first part of 195 and saw the server started, then I realized that you are referring to the continuation

@borsemayur2 @arctix-tk The error you are experiencing is #201.

@macorifice Try downgrading to Deno 1.6.3 for that.

I got the same error.

Also happens in the newest version:

Check https://deno.land/x/aleph@v0.3.0-alpha.8/cli/dev.ts
error: Uncaught (in promise) TypeError: Cannot set property navigator of #<Window> which has only a getter
    Object.assign(globalThis, {
           ^
    at Function.assign (<anonymous>)
    at Application.init (https://deno.land/x/aleph@v0.3.0-alpha.8/server/app.ts:410:12)
    at async serve (https://deno.land/x/aleph@v0.3.0-alpha.8/server/server.ts:177:3)
    at async default (https://deno.land/x/aleph@v0.3.0-alpha.8/cli/dev.ts:21:3)
    at async main (https://deno.land/x/aleph@v0.3.0-alpha.8/cli.ts:147:7)