alephjs / aleph.js

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

cannot run new project. deno 1.9.2 aleph 0.2.28 #340

Closed m1cl closed 3 years ago

m1cl commented 3 years ago

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())

    at https://deno.land/x/aleph@v0.2.28/tsc/compile.ts:28:49

    'isTypeOnly' is declared here.
            readonly isTypeOnly: boolean;
    at https://cdn.esm.sh/v41/typescript@4.2.4/lib/typescript.d.ts:1601:18
const { default: cmd } = await import(`./cli/${command}.ts`)
                         ^
at async main (https://deno.land/x/aleph@v0.2.28/cli.ts:163:30)
ije commented 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.

About7Sharks commented 3 years ago

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

Bili-Jun commented 3 years ago

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 () at https://deno.land/x/aleph@v0.3.0-alpha.33/server/helper.ts:24:8 at ()

Bili-Jun commented 3 years ago

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

shadowtime2000 commented 3 years ago

@Bili-Jun That was already solved from Aleph alpha .32

ije commented 3 years ago

try beta.1 with deno 1.13

Acen commented 3 years ago

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 % 
ije commented 3 years ago

@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 commented 3 years ago

@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.

talentlessguy commented 3 years ago

can this be closed? latest 0.3 beta works fine on deno 1.14