question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Aleph cannot find react.ts in Alpha.22

See original GitHub issue

I started out on Aleph: $ aleph --version
aleph.js 0.3.0-alpha.12 deno 1.8.2 v8 9.0.257.3 typescript 4.2.2

With and import map of:

{
    "imports": {
        "~/": "./",
        "@/": "./",
        "aleph": "https://deno.land/x/aleph@v0.3.0-alpha.12/mod.ts",
        "aleph/": "https://deno.land/x/aleph@v0.3.0-alpha.12/",
        "react": "https://esm.sh/react@17.0.1",
        "react-dom": "https://esm.sh/react-dom@17.0.1"
    },
    "scopes": {}
}

And moved to alpha.22 with the following command aleph upgrade. Since Aleph does not change the import map I manually changed it to:

{
    "imports": {
        "~/": "./",
        "@/": "./",
        "aleph": "https://deno.land/x/aleph@v0.3.0-alpha.22/mod.ts",
        "aleph/": "https://deno.land/x/aleph@v0.3.0-alpha.22/",
        "react": "https://esm.sh/react@17.0.2",
        "react-dom": "https://esm.sh/react-dom@17.0.2"
    },
    "scopes": {}
}

When doing a aleph dev -reload and then an aleph dev I get the following error:

ERROR Fetch module 'https://deno.land/x/aleph@v0.3.0-alpha.22/react.ts': Not Found

=> And looking at https://deno.land/x/aleph@v0.3.0-alpha.22/ react.ts is no longer there as it was in alpha.12 but the complier is expecting it to be there on aleph dev -reload <=

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ijecommented, Mar 30, 2021

hi @aadamsx,

sorry for the late relay, vary grateful you are interested in this project. Alephjs is a vary young project that has many issues need to be improved. you are welcome to contribute on it.

at beginning i created a clone project of nextjs: https://github.com/ije/postjs, and i use it in my personal projects, it gives me a good view about fullstack framework in JAM-stack context. when deno 1.0 released i decide to create anthor nextjs in deno. after some hard works it can work as a mvp fullstack framework, i implemented the hmr and react fast refresh, page/api routing, builtin css/less importing, support markdown page out of the box, ts in deno of couse, even the esm.sh CDN for deno/browser. our current website is created by alephjs 0.2.

in 0.3 branch, i’m thinking more about alephjs’s future and value, what different with nextjs? what it stand for? so i almost rewrite the total project, added plugin system, split react framework code to a stand-alone module that allows we suppport other UI library like vue at next stage, use swc instead of tsc to get better prefs and AST opration. so it is extreme unstable currently, but i think it should be more stable in deno 1.9 i hope.

again, thanks and you are welcome to conttribute on alephjs since it is a huge project, the most complex module is the https://github.com/alephjs/aleph.js/blob/master/server/app.ts, it is the server and project runtime manager, you can read it as a start.

0reactions
aadamsxcommented, Mar 30, 2021

@ije thanks for the feedback, it would be nice to get an idea of the process/event flow as well…

I’ll clone and try to run it on a project to start.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Warning on using Zustand · Issue #221 · alephjs/aleph.js
I'm trying out Zustand with Aleph and get this warning on render: Warning: useLayoutEffect ... Aleph cannot find react.ts in Alpha.22 #222.
Read more >
Cannot find module 'react'.ts(2307) - Stack Overflow
The TS linter keeps saying that Cannot find module 'react'.ts(2307) I've tried yarn add @types/react, yarn add, restarting VScode etc.
Read more >
React in Deno with Aleph.js - Developer.com
According to Aleph.js: “Aleph.js gives you the best developer experience for building modern web applications: TypeScript in Deno, ES module ...
Read more >
aleph@1.0.0-beta.16 - Deno
x/aleph/framework/react/pagedata.ts. The Full-stack Framework in Deno. alephjs/aleph.js. Popular ... This file or directory could not be found. Why Deno?
Read more >
Server-Rendered Web Applications in Deno with Aleph.js - InfoQ
Aleph.js, a React framework for server-rendered applications in Deno, is now available through an alpha release. Aleph makes many of ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found