I work with pedagogies, teach, write curricula, coach, manage, mentor, consult, speak publicly, polemicize, and sometimes work as a full-stack web developer, architect, ontologist, and more.
Doesn't work for me at all. Import statements for react and framework/react give linting error relative import path "react" not prefixed with / or ./ or ../.
JSX returned from e.g.,Home gives linting error JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.deno-ts(7026). I presume this is because it isn't finding React.
Running the app returns 500 - Cannot resolve module "file:///**/hello/.aleph/development/react" from "file:///**/hello/.aleph/development/app.js#e5507c". at file:///**/hello/.aleph/development/app.js#e5507c:3:0
aleph build also fails:
Bundle /_aleph/shared.bundle.entry.js
error: Unable to output bundle during Graph::bundle().
Caused by:
0: load_transformed failed
1: failed to analyze module
2: failed to resolve ./react from </_aleph/app.bundling.js>
3: The graph is missing a dependency.
Specifier: /_aleph/react from /_aleph/app.bundling.js
What am I missing here? Is Aleph broken or do I need to install something else, change versions, do something differently? I am running:
I work with pedagogies, teach, write curricula, coach, manage, mentor, consult, speak publicly, polemicize, and sometimes work as a full-stack web developer, architect, ontologist, and more.
I work with pedagogies, teach, write curricula, coach, manage, mentor, consult, speak publicly, polemicize, and sometimes work as a full-stack web developer, architect, ontologist, and more.
Doesn't work for me at all. Import statements for
react
andframework/react
give linting errorrelative import path "react" not prefixed with / or ./ or ../
.JSX returned from e.g.,
Home
gives linting errorJSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.deno-ts(7026)
. I presume this is because it isn't finding React.Running the app returns
500 - Cannot resolve module "file:///**/hello/.aleph/development/react" from "file:///**/hello/.aleph/development/app.js#e5507c". at file:///**/hello/.aleph/development/app.js#e5507c:3:0
aleph build
also fails:What am I missing here? Is Aleph broken or do I need to install something else, change versions, do something differently? I am running:
Also, I don't know why Aleph is outputting this to
pages/index.tsx
:Found the problem. The
import_map.json
file was empty.Should be:
In case anyone else runs into this.
Thanks! I had the same problem.
Now I have another one when running
aleph build
:No idea why.
Ok, fixed by changing the import paths.
First, I tried changing the import map's first entry to this but didn't work:
Then I changed the import path themselves and it worked!
Got this working with:
Not sure what was broken before. Wrong version?