Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to manage dependencies with gatsby-dev-cli? #8533

Closed
vadimshvetsov opened this issue Sep 25, 2018 · 4 comments
Closed

How to manage dependencies with gatsby-dev-cli? #8533

vadimshvetsov opened this issue Sep 25, 2018 · 4 comments
Labels
type: question or discussion Issue discussing or asking a question about Gatsby

Comments

@vadimshvetsov
Copy link
Contributor

Hey, I've already have this question at Stackoverflow and asked this question in gatsby's channel at discord but nobody reacts.

I can't find a good way to work with gatsby-dev-cli and test site. When I'm trying to work with gatsby-transformer-remark there are tons of errors about missing dependencies. My main goal is to get possibility to use id attribute in markdown with paragraph or span and I'm trying to bind remark-bracketed-spans with gatsby-transformer-remark I'd even published gatsby-remark-bracketed-spans to npm but no way to make it works. For further investigation I need to debug gatsby-transformer-remark.

I had a previous issue, but now I'm trying to find out why it doesn't work.

Environment (if relevant)

System:
OS: macOS High Sierra 10.13.6
CPU: x64 Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz
Shell: 5.3 - /bin/zsh
Binaries:
Node: 8.7.0 - ~/.nvm/versions/node/v8.7.0/bin/node
Yarn: 1.9.4 - ~/.nvm/versions/node/v8.7.0/bin/yarn
npm: 6.4.1 - ~/.nvm/versions/node/v8.7.0/bin/npm
Browsers:
Chrome: 69.0.3497.100
Firefox: 57.0.3
Safari: 12.0
npmGlobalPackages:
gatsby-cli: 2.4.1
gatsby-dev-cli: 2.4.1

@kakadiadarpan
Copy link
Contributor

@vadimshvetsov I assume you are trying to make local changes to debug gatsby-transformer-remark as you are using it for your plugin. You can watch this video here for gatsby-dev-cli, that might be of help to you.

@kakadiadarpan kakadiadarpan added the status: awaiting author response Additional information has been requested from the author label Sep 26, 2018
@stefanprobst
Copy link
Contributor

gatsby-dev-cli will by default look in your project's package.json for gatsby-* packages. So if you plan to work on gatsby-transformer-remark, make sure you have it installed in your project, before linking your dev version with gatsby-dev.

@vadimshvetsov
Copy link
Contributor Author

vadimshvetsov commented Sep 26, 2018

@kakadiadarpan thanks, yes I've watched this video but my case is more complicated. gatsby develop can't find gatsby-tranformer-remark dependencies.
@stefanprobst
My package.json has this:

"gatsby-transformer-remark": "next",

But after the linking there are errors like Missing gray-matter, but it must be inside.

@kakadiadarpan kakadiadarpan added type: question or discussion Issue discussing or asking a question about Gatsby and removed status: awaiting author response Additional information has been requested from the author labels Sep 26, 2018
@vadimshvetsov
Copy link
Contributor Author

vadimshvetsov commented Sep 26, 2018

Finally, the problem was with remark-bracketed-spans which I had added to gatsby-transformer-remark dependencies and if I want to use it with test site I need to install remark-bracketed-spans inside test site directory also. Thank you for your time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question or discussion Issue discussing or asking a question about Gatsby
Projects
None yet
Development

No branches or pull requests

3 participants