alephjs / aleph.js

The Full-stack Framework in Deno.
https://aleph.deno.dev/
MIT License
5.26k stars 168 forks source link

error after installation #535

Closed kirilligum closed 1 year ago

kirilligum commented 1 year ago

fish on ubuntu wsl

kirill@zagadka ~/t/deno> curl -fsSL https://deno.land/x/install/install.sh | sh

######################################################################## 100.0%
Archive:  /home/kirill/.deno/bin/deno.zip
  inflating: /home/kirill/.deno/bin/deno
Deno was installed successfully to /home/kirill/.deno/bin/deno
Manually add the directory to your $HOME/.bashrc (or similar)
  export DENO_INSTALL="/home/kirill/.deno"
  export PATH="$DENO_INSTALL/bin:$PATH"
Run '/home/kirill/.deno/bin/deno --help' to get started

Stuck? Join our Discord https://discord.gg/deno
kirill@zagadka ~/t/deno> set -U DENO_INSTALL /home/kirill/.deno
kirill@zagadka ~/t/deno> echo $DENO_INSTALL
/home/kirill/.deno
kirill@zagadka ~/t/deno> fish_add_path $DENO_INSTALL/bin
kirill@zagadka ~/t/deno> deno
Could not set npm package requirements. Error getting response at https://registry.npmjs.org/ethers for package "ethers": An npm specifier not found in cache: "ethers", --cached-only is specified.
Deno 1.31.1
exit using ctrl+d, ctrl+c, or close()
REPL is running with all permissions allowed.
To specify permissions, run `deno repl` with allow flags.
>
kirill@zagadka ~/t/deno> deno run -A -r https://alephjs.org/init.ts

? Project Name: try
? Select a framework:
  1. React
  2. React with MDX
  3. Vue
  4. Yew
  5. Leptos
  6. Solid
  7. REST API
[1-7] 1
? Generate `_export.ts` file for runtime that doesn't support dynamic import (deploy to Deno Deploy)? [y/N] N
? Using Unocss(TailwindCSS)? [y/N]
? Initialize VS Code workspace configuration? [y/N] N
↓ Downloading template(react), this might take a moment...

▲ Aleph.js is ready to go!

$ cd try
$ deno task dev    # Start the server in `development` mode
$ deno task start  # Start the server in `production` mode
$ deno task build  # Build & Optimize the app (bundling, SSG, etc.)

Docs: https://alephjs.org/docs
Bugs: https://github.com/alephjs/aleph.js/issues

kirill@zagadka ~/t/deno> cd try/
kirill@zagadka ~/t/d/try> deno task dev
Task dev deno run -A dev.ts
INFO [dev] Watching for file changes...
INFO Server ready on http://localhost:8000
^C⏎
kirill@zagadka ~/t/d/try [SIGINT]> deno task start
Task start deno run -A server.ts
INFO Server ready on http://localhost:8000
error: Uncaught (in promise) TypeError: The stream controller cannot close or enqueue.
                  controller.close();
                             ^
    at ReadableStreamDefaultController.close (internal:deno_web/06_streams.js:5425:13)
    at send (https://deno.land/x/aleph@1.0.0-beta.24/server/renderer.ts:260:30)
kirill@zagadka ~/t/d/try [1]> deno task build
Task build deno run -A server.ts --build
INFO 0 routes found
INFO 3 client modules built
INFO Done in 3781.38ms
kirill@zagadka ~/t/d/try> deno task start
Task start deno run -A server.ts
INFO Server ready on http://localhost:8000
^C⏎
kirill@zagadka ~/t/d/try [SIGINT]> deno task dev
Task dev deno run -A dev.ts
INFO [dev] Watching for file changes...
INFO Server ready on http://localhost:8000
^C⏎
kirill@zagadka ~/t/d/try [SIGINT]> deno task start
Task start deno run -A server.ts
INFO Server ready on http://localhost:8000
error: Uncaught (in promise) TypeError: The stream controller cannot close or enqueue.
                  controller.close();
                             ^
    at ReadableStreamDefaultController.close (internal:deno_web/06_streams.js:5425:13)
    at send (https://deno.land/x/aleph@1.0.0-beta.24/server/renderer.ts:260:30)
kirill@zagadka ~/t/d/try [1]>
ije commented 1 year ago

does the dev mode fail too?

kirilligum commented 1 year ago

no you can see above

kirill@zagadka ~/t/d/try> deno task dev
Task dev deno run -A dev.ts
INFO [dev] Watching for file changes...
INFO Server ready on http://localhost:8000
^C⏎
kirilligum commented 1 year ago

the browser shows the website

kirilligum commented 1 year ago

if i run start after build, i don't get the error in the terminal anymore but the website reloads into an error image

Cannot read properties of null (reading 'useContext')

ije commented 1 year ago

thanks! i can repeat on my computer! will fix it ASAP

ije commented 1 year ago
Screenshot 2023-02-28 at 18 18 50
ije commented 1 year ago

this only happens when i released the framework, and the integration testing passed

ije commented 1 year ago

now should work fine