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.

Doesn't work with schema path outside project root

See original GitHub issue
schema: {
    files: '../graphql/*.graphql'
}

doesn’t work, while

schema: {
    files: 'graphql/*.graphql'
}

works just fine.

Using it on Windows 10, not sure how to get any useful error message (I just see an error icon in VSCode and the plugin features don’t work).

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
peterholakcommented, Aug 22, 2017

I have a project where both the client and the server (multiple different servers in fact) are in the same git repository, and share the same graphql schema. So the directory structure goes something like

|- client
    |- package.json
    |- webpack.config.js
    |- ...
|- server1
|- server2
|- graphql
    |- schema.graphql
|- README.md and other stuff

In VSCode, I only open the client directory, because it’s more convenient (no irrelevant clutter when doing project-wide search, correct default working directory for scripts, etc.).

0reactions
kumarharshcommented, Jul 4, 2019

🎉 This issue has been resolved in version 1.14.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can you setup a path alias for a reference outside the root ...
As your EventListSchema file is not at its root directory, the path reference is not correct. Instead, do it like this
Read more >
Schema from npm module not working · Issue #236 - GitHub
The workaround I ended up using is linking the node_modules schema into my project files: # in the project root dir ln -s...
Read more >
The composer.json schema
It is the main composer.json that defines your project requirements. ... Note: A package can be the root package or not, depending on...
Read more >
Relative and absolute paths, in the file system and on the web ...
If you don't supply the root, it means that your path is relative. The simplest example of relative path is just a file...
Read more >
ERR_FSPROVIDER_ROOT_PA...
The root path of the dataset or folder does not exist. DSS is trying to access data ... The error message details what...
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