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.

Failure to correctly link sources when building on vercel

See original GitHub issue

Search terms

vercel, source links, repository, git, markdown

Expected Behavior

When building on my local machine and building on vercel, I expect that the documentation output will be consistent between both if both are built from the same source repository. As such, I expect the source links for methods and interfaces to work on vercel reliably (they do not)

Actual Behavior

Source code links are not linked on vercel (and sometimes in docker containers too)

Steps to reproduce the bug

You can see this over at: https://github.com/inrupt/solid-client-js/pull/1481/ and https://solid-client-js-git-feature-improve-docs-generation-inrupt.vercel.app/modules/acl_acl.html (note: the vercel link may break in the future after the PR is merged)

The issue comes from how Typedoc tries to infer where the “source” is, which is by trying to look at the git remotes:

On vercel, the two git operations seem to not return back a URL for the “origin” remote (and in testing, I wasn’t able to get git remote -v to actually output anything to the build log).

Environment

  • Typedoc version: 0.22.12 (with typedoc-plugin-markdown@^3.11.14)
  • TypeScript version: 4.5.5
  • Node.js version: 14.x
  • OS: Unknown (whatever vercel uses)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
Gerrit0commented, Apr 1, 2022

Not that I’ve been able to come up with, I’m being really picky about false positives.

https://www.npmjs.com/package/nlfurniss-typedoc-plugin-sourcefile-url might be of interest.

0reactions
ThisIsMissEmcommented, Mar 28, 2022

@Gerrit0 hmm, so there’s not really a good “generic base URL” plugin that could make it into core?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Errors – Vercel Docs
A list of errors provided by Vercel CLI or the REST API, with details on how they occur and how to resolve them....
Read more >
Troubleshoot a Build – Vercel Docs
If the failed build is the most recent deployment, you will see an Error in the Upcoming section below the Deployment preview on...
Read more >
How do I resolve a 'module not found' error? - Vercel
The 'module not found' error is a syntax error that appears when the static import statement cannot find the file at the declared...
Read more >
Configure a Build – Vercel Docs
You must create a deployment and have your local project linked to the project on Vercel (using vercel ). Otherwise, vercel dev will...
Read more >
Why aren't commits triggering deployments on Vercel?
You have been working on a feature and have committed some code ready to be pushed up. You are looking forward to a...
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