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.

Docz dosent find custom paths

See original GitHub issue

Hi, I have this config on my webpack:

    resolve: {
      modules: [
        '.',
        '..',
        __dirname,
        __dirname + '/js',
        'node_modules'
      ]
   }

So, in can import without use things like ‘…/’

import Link from 'components/Link'

But on docz, got a error (file not found)

 ERROR  Failed to compile with 8 errors17:02:37

These dependencies were not found:

* components/base in ./js/components/button/ButtonCircle.jsx, ./js/components/button/ButtonSquare.jsx
* components/icons in ./js/components/button/ButtonCircle.jsx, ./js/components/button/ButtonSquare.jsx
* components/link in ./js/components/button/Button.jsx

Is there a way to config root paths to find components on docz?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

14reactions
chrstntddcommented, Jul 6, 2018

Is there current a way that docz can handle aliases afforded by the paths option in a given tsconfig.json file? I have alias @/path/to/component that resolves to the src directory and it currently won’t work 😕

7reactions
selrondcommented, Dec 13, 2018

@dfee confirmed, I’m getting them as well

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docz dosent find custom paths · Issue #48 - GitHub
Hi, I have this config on my webpack: resolve: { modules: [ '.', '..', __dirname, __dirname + '/js', 'node_modules' ] } So, in...
Read more >
TypeScript custom paths do not work without barreling
Hey @C_Ogoo so the paths are all correct because it works when an index.ts file exists with service classes exported... Also I've been...
Read more >
Documentation - Module Resolution - TypeScript
Please see the Modules documentation for more information. ... Use non-relative paths when importing any of your external dependencies.
Read more >
File path formats on Windows systems | Microsoft Learn
In this article, learn about file path formats on Windows systems, such as traditional DOS paths, DOS device paths, and universal naming ...
Read more >
Static Application Security Testing (SAST) - GitLab Docs
The ADDITIONAL_CA_CERT_BUNDLE value can also be configured as a custom variable in the UI, either as a file , which requires the path...
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