-
Notifications
You must be signed in to change notification settings - Fork 166
Using the git repo of aleph #99
-
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
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 3 comments 3 replies
-
For the CSS errors, I don't think the current bundler can do that, that being one of the reasons for creating #98
Beta Was this translation helpful? Give feedback.
All reactions
-
Ahhh, makes sense.
Beta Was this translation helpful? Give feedback.
All reactions
-
hey @FallingSnow the v0.3.0-alpha is not released yet.
Beta Was this translation helpful? Give feedback.
All reactions
-
I know :P I'm aggressive lol
Beta Was this translation helpful? Give feedback.
All reactions
-
😄 1
-
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
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.
Beta Was this translation helpful? Give feedback.