bobheadxi / readable

👓 Opinionated Markdown formatter, featuring semantic line breaks
https://bobheadxi.dev/semantic-line-breaks/
20 stars 4 forks source link

BUG: docker container fails due to internal pathing issues #21

Closed artis3n closed 1 year ago

artis3n commented 1 year ago

Just following the README instructions with the latest tag:

image

Trying the latest release has a different failure:

image

The v0.2.2 image works

rooterkyberian commented 1 year ago

Same with deno:

$ deno install --allow-read --allow-write https://deno.land/x/readable/readable.ts
Download â ¦ https://deno.land/x/readable/readable.ts                                                     Warning Implicitly using latest version (v0.3.0) for https://deno.land/x/readable/readable.ts
error: Relative import path "log/mod.ts" not prefixed with / or ./ or ../
    at https://deno.land/x/readable@v0.3.0/cmd/check.ts:1:24

deno install and docker works with 0.2.2 , but readable fmt fails on this version with error: Uncaught (in promise) Error: failed to render 'removed-fullpath-for-privacy-reasons/README.md', aborting: ReferenceError: document is not defined

SilasK commented 11 months ago

I have still the same issue with deno

% deno install --allow-read --allow-write https://deno.land/x/readable/readable.ts
error: Relative import path "log/mod.ts" not prefixed with / or ./ or ../
    at https://deno.land/x/readable@v0.5.0/readable.ts:3:27

on macos Warning Implicitly using latest version (v0.5.0) for https://deno.land/x/readable/readable.ts

SilasK commented 11 months ago

I got it to work, by cloning the repo and using the mapping. is there a way to do this from the remote repo?