Closed m1cl closed 3 years ago
sorry, pls try the alpha.33, 0.2.28 only can work in deno 1.6.3. and the 0.3 beta will land in next few days, and i'm updating the docs.
Can confirm that I ran into the same issue today
Solution was to update deno and aleph
NOTE: I did have to remove the repo and rerun aleph init app
alpha.xx has a typeError: @ije
deno install --unstable -A -f -n aleph https://deno.land/x/aleph@v0.3.0-alpha.33/cli.ts aleph init hello aleph dev
===>
error: Uncaught (in promise) TypeError: Cannot convert undefined or null to object
at Function.assign (
alpha.xx has a typeError:
deno install --unstable -A -f -n aleph https://deno.land/x/aleph@v0.3.0-alpha.33/cli.ts aleph init hello aleph dev
===>
error: Uncaught (in promise) TypeError: Cannot convert undefined or null to object at Function.assign () at https://deno.land/x/aleph@v0.3.0-alpha.33/server/helper.ts:24:8 at ()
➜ deno -V
deno 1.11.2
➜ hello aleph dev
Check https://deno.land/x/aleph@v0.3.0-alpha.32/cli.ts
Check https://deno.land/x/aleph@v0.3.0-alpha.32/cli/dev.ts
ERROR Aleph.js needs Deno 1.8.0+, please upgrade Deno.
?????? @ije
@Bili-Jun That was already solved from Aleph alpha .32
try beta.1 with deno 1.13
Getting issues with a clean install too:
Acen@Ye-Olde-Spaghetti-Moose-Legs c % aleph upgrade
Looking up latest version...
Already up-to-date!
Acen@Ye-Olde-Spaghetti-Moose-Legs c % deno upgrade
Looking up latest version
Local deno version 1.13.2 is the most recent release
Acen@Ye-Olde-Spaghetti-Moose-Legs c % aleph -v
aleph.js v0.3.0-beta.4
Acen@Ye-Olde-Spaghetti-Moose-Legs c % aleph init alephTest
Check https://deno.land/x/aleph@v0.3.0-beta.4/commands/init.ts
Using VS Code? [y/n] n
Downloading template. This might take a moment...
Apply template...
Cache deps...
Done
Aleph.js is ready to go!
▲ cd alephTest
▲ aleph dev # start the app in `development` mode
▲ aleph start # start the app in `production` mode
▲ aleph build # build the app to a static site (SSG)
Docs: https://alephjs.org/docs
Bugs: https://alephjs.org.com/alephjs/aleph.js/issues
Acen@Ye-Olde-Spaghetti-Moose-Legs c % cd alephTest
Acen@Ye-Olde-Spaghetti-Moose-Legs alephTest % aleph dev
Check https://deno.land/x/aleph@v0.3.0-beta.4/commands/dev.ts
error: Uncaught (in promise) TypeError: TS2339 [ERROR]: Property 'upgradeWebSocket' does not exist on type 'typeof Deno'.
const { socket, response } = Deno.upgradeWebSocket(req)
~~~~~~~~~~~~~~~~
at https://deno.land/x/aleph@v0.3.0-beta.4/server/server.ts:38:43
TS7006 [ERROR]: Parameter 'e' implicitly has an 'any' type.
socket.addEventListener('message', (e) => {
^
at https://deno.land/x/aleph@v0.3.0-beta.4/server/server.ts:59:45
Found 2 errors.
const { default: cmd } = await import(`./commands/${command}.ts`)
^
at async main (https://deno.land/x/aleph@v0.3.0-beta.4/cli.ts:77:28)
Acen@Ye-Olde-Spaghetti-Moose-Legs alephTest %
@Acen this because your command missed --unstable
flag since the old command didn't add it, try run:
deno run -A https://deno.land/x/aleph/install.ts
@Acen this because your command missed
--unstable
flag since the old command didn't add it, try run:deno run -A https://deno.land/x/aleph/install.ts
And we're working.
Cheers.
can this be closed? latest 0.3 beta works fine on deno 1.14
Check https://deno.land/x/aleph@v0.2.28/cli/dev.ts error: Uncaught (in promise) TypeError: TS2345 [ERROR]: Argument of type 'TransformerFactory' is not assignable to parameter of type 'TransformerFactory | CustomTransformerFactory'.
Type 'import("https://cdn.esm.sh/v41/typescript@4.2.4/lib/typescript.d.ts").TransformerFactoryimport("https://cdn.esm.sh/v41/typescript@4.2.4/lib/typescript.d.ts").SourceFile' is not assignable to type 'import("https://cdn.esm.sh/v41/typescript@4.1.2/lib/typescript.d.ts").TransformerFactoryimport("https://cdn.esm.sh/v41/typescript@4.1.2/lib/typescript.d.ts").SourceFile'.
Types of parameters 'context' and 'context' are incompatible.
Type 'import("https://cdn.esm.sh/v41/typescript@4.1.2/lib/typescript.d.ts").TransformationContext' is not assignable to type 'import("https://cdn.esm.sh/v41/typescript@4.2.4/lib/typescript.d.ts").TransformationContext'.
The types of 'factory.createTypeParameterDeclaration(...).parent' are incompatible between these types.
Type 'import("https://cdn.esm.sh/v41/typescript@4.1.2/lib/typescript.d.ts").DeclarationWithTypeParameterChildren | import("https://cdn.esm.sh/v41/typescript@4.1.2/lib/typescript.d.ts").InferTypeNode' is not assignable to type 'import("https://cdn.esm.sh/v41/typescript@4.2.4/lib/typescript.d.ts").DeclarationWithTypeParameterChildren | import("https://cdn.esm.sh/v41/typescript@4.2.4/lib/typescript.d.ts").InferTypeNode'.
Type 'JSDocTemplateTag' is not assignable to type 'DeclarationWithTypeParameterChildren | InferTypeNode'.
Type 'import("https://cdn.esm.sh/v41/typescript@4.1.2/lib/typescript.d.ts").JSDocTemplateTag' is not assignable to type 'import("https://cdn.esm.sh/v41/typescript@4.2.4/lib/typescript.d.ts").JSDocTemplateTag'.
Types of property 'parent' are incompatible.
Type 'import("https://cdn.esm.sh/v41/typescript@4.1.2/lib/typescript.d.ts").JSDoc | import("https://cdn.esm.sh/v41/typescript@4.1.2/lib/typescript.d.ts").JSDocTypeLiteral' is not assignable to type 'import("https://cdn.esm.sh/v41/typescript@4.2.4/lib/typescript.d.ts").JSDoc | import("https://cdn.esm.sh/v41/typescript@4.2.4/lib/typescript.d.ts").JSDocTypeLiteral'.
Type 'JSDoc' is not assignable to type 'JSDoc | JSDocTypeLiteral'.
Type 'import("https://cdn.esm.sh/v41/typescript@4.1.2/lib/typescript.d.ts").JSDoc' is not assignable to type 'import("https://cdn.esm.sh/v41/typescript@4.2.4/lib/typescript.d.ts").JSDoc'.
Types of property 'parent' are incompatible.
Type 'import("https://cdn.esm.sh/v41/typescript@4.1.2/lib/typescript.d.ts").HasJSDoc'
is not assignable to type 'import("https://cdn.esm.sh/v41/typescript@4.2.4/lib/typescript.d.ts").HasJSDoc'.
Type 'ImportEqualsDeclaration' is not assignable to type 'HasJSDoc'.
Property 'isTypeOnly' is missing in type 'import("https://cdn.esm.sh/v41/typescript@4.1.2/lib/typescript.d.ts").ImportEqualsDeclaration' but required in type 'import("https://cdn.esm.sh/v41/typescript@4.2.4/lib/typescript.d.ts").ImportEqualsDeclaration'.
if (reactRefresh) transformers.before!.push(reactRefreshTS())