Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Using the git repo of aleph #99

Unanswered
FallingSnow asked this question in Q&A
Discussion options

I'm trying to use the latest version of aleph, wanted to try swc, but I'm running into a couple issues. I'm doing this by modifying imports_map.json and using deno run --allow-read --allow-net --allow-env --allow-write --allow-run /git-repos/aleph.js/cli.ts dev. I seem to be unable to use css files and I also can't seem to import map the react import.

CSS Import:

import "https://esm.sh/tailwindcss/dist/tailwind.min.css";
import "https://esm.sh/@tailwindcss/typography/dist/typography.min.css";

import_map.json:

{
 "imports": {
 "https://deno.land/x/aleph/mod.ts": "https://raw.githubusercontent.com/alephjs/aleph.js/swc/mod.ts",
 "https://deno.land/x/aleph@v0.3.0-alpha/framework/react/style.ts": "https://raw.githubusercontent.com/alephjs/aleph.js/swc/framework/react/style.ts"
 }
}

Errors:

error: An unsupported media type was attempted to be imported as a module.
 Specifier: https://cdn.esm.sh/tailwindcss@2.0.2/dist/tailwind.min.css
 MediaType: Unknown
Download https://deno.land/x/aleph@v0.3.0-alpha/framework/react/style.ts
ERROR dependency 'https://deno.land/x/aleph@v0.3.0-alpha/framework/react/style.ts' not found
Download https://esm.sh/@tailwindcss/typography/dist/typography.min.css?dev
Download https://cdn.esm.sh/@tailwindcss/typography@0.4.0/dist/typography.min.css
error: An unsupported media type was attempted to be imported as a module.
 Specifier: https://cdn.esm.sh/@tailwindcss/typography@0.4.0/dist/typography.min.css
 MediaType: Unknown
Download https://deno.land/x/aleph@v0.3.0-alpha/framework/react/style.ts
ERROR dependency 'https://deno.land/x/aleph@v0.3.0-alpha/framework/react/style.ts' not found
Download https://esm.sh/swr?external=react&dev
You must be logged in to vote

Replies: 3 comments 3 replies

Comment options

For the CSS errors, I don't think the current bundler can do that, that being one of the reasons for creating #98

You must be logged in to vote
1 reply
Comment options

Ahhh, makes sense.

Comment options

hey @FallingSnow the v0.3.0-alpha is not released yet.

You must be logged in to vote
2 replies
Comment options

I know :P I'm aggressive lol

Comment options

ije Jan 22, 2021
Maintainer

Comment options

Got closer. I moved the CSS imports to <Import> and the map file to denopkg.com. Now it just kind of hangs no where...

deno run --allow-read --allow-net --allow-env --allow-write --allow-run /git-repos/aleph/cli.ts dev
INFO Aleph.js v0.3.0-alpha
INFO - Global
INFO  aleph.config.js
INFO  Custom App
Download https://denopkg.com/alephjs/aleph.js/swc/mod.ts
Download https://raw.githubusercontent.com/alephjs/aleph.js/master/swc/mod.ts
Download https://esm.sh/swr?external=react&dev
Download https://cdn.esm.sh/v15/swr@0.4.0/external=react@17.0.1/esnext/swr.development.js
Download https://cdn.esm.sh/v15/swr@0.4.0/dist/index.d.ts
Download https://cdn.esm.sh/v15/react@17.0.1/esnext/react.development.js
Download https://cdn.esm.sh/v15/swr@0.4.0/dist/use-swr.d.ts
Download https://cdn.esm.sh/v15/swr@0.4.0/dist/use-swr-infinite.d.ts
Download https://cdn.esm.sh/v15/swr@0.4.0/dist/types.d.ts
Download https://cdn.esm.sh/v15/swr@0.4.0/dist/config.d.ts
Download https://cdn.esm.sh/v15/react@17.0.1/index.d.ts
Download https://cdn.esm.sh/v15/swr@0.4.0/dist/cache.d.ts
Download https://esm.sh/graphql-request?dev
Download https://cdn.esm.sh/v15/graphql-request@3.4.0/esnext/graphql-request.development.js

Might mess around with it a little more later.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /