question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

imports_map.json no longer respected

See original GitHub issue

The 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:closed
  • Created 3 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
ijecommented, Feb 5, 2021

fixed! thank you @FallingSnow

aleph upgrade
0reactions
FallingSnowcommented, Mar 19, 2021

I’m going to go ahead an close this. If the issue arises again we can reopen.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found