-
Notifications
You must be signed in to change notification settings - Fork 166
Can't get Aleph.js working #181
-
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)
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 10 replies
-
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.
Beta Was this translation helpful? Give feedback.
All reactions
-
You can work around it by using Deno 1.7.x instead of Deno 1.8.0
Beta Was this translation helpful? Give feedback.
All reactions
-
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?
Beta Was this translation helpful? Give feedback.
All reactions
-
@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.
Beta Was this translation helpful? Give feedback.
All reactions
-
@lcswillems Could you provide the full stack trace?
Beta Was this translation helpful? Give feedback.
All reactions
-
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?
Beta Was this translation helpful? Give feedback.