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.

cleanPath outputting \\ instead of /

See original GitHub issue

The cleanPath function seems to be inserting double backslashes instead of a single forward slash in the main html file. For example the server/helper.ts file is generating the modulepreload javascript link using

<link rel="modulepreload" href=${JSON.stringify(util.cleanPath(v.src))} />

which outputs as:

<link rel="modulepreload" href="\\_aleph\\main.[someval].js" />

which instead should be:

<link rel="modulepreload" href="/_aleph/main.[someval].js" />

The reason I bring this up is when I try to run the hello world locally I get errors that the main.[someval].js cannot be accessed, because the HTML is treating the link as a local file resource and not a HTTP resource. I noticed the sample app at https://alephjs-hello-world.vercel.app/ has the correct HTML reference using / instead of \.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
ijecommented, Sep 19, 2021

fixed in latest release

0reactions
ijecommented, Sep 10, 2021

@kotx thanks, i will look into it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to get the correct and clean path while doing drag and ...
You simply type in the input path and the output path and the manipulation is done. All was fine until I decided to...
Read more >
UNLOAD - Amazon Redshift - AWS Documentation
If ALLOWOVERWRITE is specified, UNLOAD overwrites existing files, including the manifest file. CLEANPATH. The CLEANPATH option removes existing files located in ...
Read more >
Workflow Error Log Output - Alteryx Community
I saw a lot of posts about different methods of outputting the workflow ... key=os.path.getctime) cleanpath = os.path.abspath(latest_file) ...
Read more >
Replace Functions | qmake Manual - Qt Documentation
This function is a wrapper around QDir::cleanPath. ... zeropad pads the output with zeroes instead of spaces; padsign prepends a space to positive...
Read more >
red/bugs - Gitter
You have to call clean-path here: >> to-local-file clean-path %// == "d:\" ... hm, I don't know :-( what about %c:/temp instead of...
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