imports_map.json no longer respected
See original GitHub issueThe hello example no longer works. This may be caused by a cache issue?
Issue is the same with aleph@v0.3.0-alpha.4
.
$ aleph init hello
Download https://deno.land/x/aleph@v0.3.0-alpha.5/cli/init.ts
Check https://deno.land/x/aleph@v0.3.0-alpha.5/cli/init.ts
Add recommended VS Code workspace settings? [y/n] y
Downloading template...
Saving template...
Done
---
Aleph.js is ready to Go.
$ cd hello
$ aleph dev # start the app in `development` mode
$ aleph start # start the app in `production` mode
$ aleph build # build the app to a static site (SSG)
---
$ cd hello
$ aleph dev
ERROR module '/react' not found
ERROR module '/pages/aleph' not found
ERROR module '/pages/react' not found
ERROR module '/components/react' not found
ERROR module '/lib/react' not found
INFO Start watching code changes...
WARN port 8080 already in use, try 8081...
INFO Aleph server ready on http://localhost:8081/
The interesting thing about this is it kind of half worked before I did rm -rf .aleph
, then all the modules errored (as opposed to like half of them).
Issue Analytics
- State:
- Created 3 years ago
- Comments:16 (16 by maintainers)
Top Results From Across the Web
deno compile ignores import_map.json specified in ... - GitHub
I have an "importMap" key in my deno.json, but it doesn't pick it up. ... I can confirm the above that deno compile...
Read more >How to use import-map with Deno - node.js - Stack Overflow
I'm seeing a couple of issues. For one, chalk doesn't work because deno doesn't support Node-style module resolution entirely correctly see the ...
Read more >Workflow Guides - Documentation - jspm.org
Rewriting will carefully respect existing HTML and existing import mappings. The operation is also largely idempotent unless there are resolution differences.
Read more ><script type="importmap"> - HTML: HyperText Markup Language
An import map is a JSON object that allows developers to control how the browser resolves module specifiers when importing JavaScript modules.
Read more >Event loops - HTML Standard - WhatWG
JSON module scripts represent a parsed JSON document. As CSS stylesheets and JSON documents do not import dependent modules, and do not throw ......
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
fixed! thank you @FallingSnow
I’m going to go ahead an close this. If the issue arises again we can reopen.