Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Can't get Aleph.js working #181

Unanswered
lcswillems asked this question in Q&A
Mar 8, 2021 · 1 comments · 10 replies
Discussion options

I am on Kubuntu 20.04.

I executed these commands:

# Install Deno
curl -fsSL https://deno.land/x/install/install.sh | sh
# Install Aleph
deno install -A -f -n aleph https://deno.land/x/aleph@v0.2.28/cli.ts
# Create Aleph app
aleph init hello
# Move inside the app
cd hello

Then when I execute aleph dev. I get this error:

Check https://deno.land/x/aleph@v0.2.28/cli/dev.ts
error: Uncaught (in promise) TypeError: TS2339 [ERROR]: Property 'utime' does not exist on type 'typeof Deno'. 'Deno.utime' is an unstable API. Did you forget to run with the '--unstable' flag?
 await Deno.utime(dest, statInfo.atime, statInfo.mtime);
 ~~~~~
 at https://deno.land/std@0.89.0/fs/copy.ts:96:16
TS2339 [ERROR]: Property 'utimeSync' does not exist on type 'typeof Deno'. 'Deno.utimeSync' is an unstable API. Did you forget to run with the '--unstable' flag?
 Deno.utimeSync(dest, statInfo.atime, statInfo.mtime);
 ~~~~~~~~~
 at https://deno.land/std@0.89.0/fs/copy.ts:111:10
TS2339 [ERROR]: Property 'utime' does not exist on type 'typeof Deno'. 'Deno.utime' is an unstable API. Did you forget to run with the '--unstable' flag?
 await Deno.utime(dest, statInfo.atime, statInfo.mtime);
 ~~~~~
 at https://deno.land/std@0.89.0/fs/copy.ts:135:16
TS2339 [ERROR]: Property 'utimeSync' does not exist on type 'typeof Deno'. 'Deno.utimeSync' is an unstable API. Did you forget to run with the '--unstable' flag?
 Deno.utimeSync(dest, statInfo.atime, statInfo.mtime);
 ~~~~~~~~~
 at https://deno.land/std@0.89.0/fs/copy.ts:160:10
TS2339 [ERROR]: Property 'utime' does not exist on type 'typeof Deno'. 'Deno.utime' is an unstable API. Did you forget to run with the '--unstable' flag?
 await Deno.utime(dest, srcStatInfo.atime, srcStatInfo.mtime);
 ~~~~~
 at https://deno.land/std@0.89.0/fs/copy.ts:183:16
TS2339 [ERROR]: Property 'utimeSync' does not exist on type 'typeof Deno'. 'Deno.utimeSync' is an unstable API. Did you forget to run with the '--unstable' flag?
 Deno.utimeSync(dest, srcStatInfo.atime, srcStatInfo.mtime);
 ~~~~~~~~~
 at https://deno.land/std@0.89.0/fs/copy.ts:214:10
TS2339 [ERROR]: Property 'systemMemoryInfo' does not exist on type 'typeof Deno'. 'Deno.systemMemoryInfo' is an unstable API. Did you forget to run with the '--unstable' flag?
 return Deno.systemMemoryInfo().free;
 ~~~~~~~~~~~~~~~~
 at https://deno.land/std@0.89.0/node/os.ts:128:15
TS2339 [ERROR]: Property 'loadavg' does not exist on type 'typeof Deno'. 'Deno.loadavg' is an unstable API. Did you forget to run with the '--unstable' flag?
 return Deno.loadavg();
 ~~~~~~~
 at https://deno.land/std@0.89.0/node/os.ts:152:15
TS2339 [ERROR]: Property 'osRelease' does not exist on type 'typeof Deno'. 'Deno.osRelease' is an unstable API. Did you forget to run with the '--unstable' flag?
 return Deno.osRelease();
 ~~~~~~~~~
 at https://deno.land/std@0.89.0/node/os.ts:166:15
TS2339 [ERROR]: Property 'systemMemoryInfo' does not exist on type 'typeof Deno'. 'Deno.systemMemoryInfo' is an unstable API. Did you forget to run with the '--unstable' flag?
 return Deno.systemMemoryInfo().total;
 ~~~~~~~~~~~~~~~~
 at https://deno.land/std@0.89.0/node/os.ts:190:15
TS2339 [ERROR]: Property 'Signal' does not exist on type 'typeof Deno'. 'Deno.Signal' is an unstable API. Did you forget to run with the '--unstable' flag?
 signals: Deno.Signal,
 ~~~~~~
 at https://deno.land/std@0.89.0/node/os.ts:228:17
Found 11 errors.
 const { default: cmd } = await import(`./cli/${command}.ts`)
 ^
 at async main (https://deno.land/x/aleph@v0.2.28/cli.ts:163:30)
You must be logged in to vote

Replies: 1 comment 10 replies

Comment options

Use the --unstable flag when installing.

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

On top of that you might need to use the alpha-8 build of aleph.

You must be logged in to vote
10 replies
Comment options

You can work around it by using Deno 1.7.x instead of Deno 1.8.0

Comment options

Thank you @shadowtime2000! It "works" now. Why there is nothing in import_map.json? React is not found... I think the correct import_map.json should be added in the example. Do you want me to add them?

Comment options

@shadowtime2000 In fact it still doesn't work... I have these errors:

ERROR module '/react' not found
ERROR module '/pages/aleph' not found

when I run aleph dev.

Comment options

@lcswillems Could you provide the full stack trace?

Comment options

I made it work now! The URL of React and Aleph.js were not correct. I think the demo should work out of the box. Maybe it would be good idea to give the correct import_map.json or to put absolute URLs in the files?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
Converted from issue

This discussion was converted from issue #180 on March 08, 2021 19:31.

AltStyle によって変換されたページ (->オリジナル) /