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.

Building components fails when the base path contains `src`

See original GitHub issue

When building locally, @timbl had:

> @solid/community-server@0.4.1 build:components /Users/timbl/src/github.com/solid/community-server
> componentsjs-generator -s src -c dist/components -i .componentsignore

Tried to reference a file outside the current package: /Users/timbl/dist/components/github.com/solid/community-server/dist/authentication/BearerWebIdExtractor.jsonld

Tested on:

  • Node 12.7
  • Node 14.x (latest)
  • 9160b52d5b54d9f981c57e0c98bd8fb93893df33 (so Components-Generator.js 2.x)
  • v0.4.1 (so Components-Generator.js 1.x)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
RubenVerborghcommented, Jan 15, 2021

Suspicion confirmed! Can reproduce now.

$ pwd
/Users/ruben/Desktop/src/foo/bar/community-server

gives

Tried to reference a file outside the current package: /Users/ruben/Desktop/dist/components/foo/bar/community-server/dist/authentication/BearerWebIdExtractor.jsonld
0reactions
RubenVerborghcommented, Jan 18, 2021

Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why are these tsconfig paths not working? - Stack Overflow
I did a bit of digging and found that the tryPaths array produced by tsconfig-paths has absolute URLs relative to the project /cwd...
Read more >
The Document Base URL element - HTML - MDN Web Docs
The HTML element specifies the base URL to use for all relative URLs in a document. There can be only one element in...
Read more >
Error linking libraries in linked folder with spaces in path ...
My workspace is located in a folder that contains a space in the name ("Folder Space"). That folder contains the empty TI-RTOS example...
Read more >
Documentation - Module Resolution - TypeScript
Module resolution is the process the compiler uses to figure out what an import refers to. Consider an import statement like import {...
Read more >
Rewrites - next.config.js
rewrites is an async function that expects to return either an array or an object of arrays (see below) holding objects with source...
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