Aleph cannot find react.ts in Alpha.22
See original GitHub issueI 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:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
@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.