newrelic-experimental / gatsby-build-newrelic

Get Telemetry Data from your Gatsby build process
Apache License 2.0
9 stars 4 forks source link

Doesn't work with yarn workspace and/or gatsby themes #27

Open davidpaulsson opened 2 years ago

davidpaulsson commented 2 years ago

Description

I have a project setup where I use yarn workspace and a gatsby theme to organize my site(s). This plugin has hardcoded paths to fetch the plugin options from the gatsby-config file, and this path doesn't line up with my folder structure and thus makes the build crash.

My structure

My site
| - /my-site-eu/ ← Uses the theme, but build starts in this folder
| - /my-site-us/ ← Uses the theme, but build starts in this folder
| - /gatsby-theme-my-site/ ← My theme, most plugins are installed here
jpvajda commented 2 years ago

@davidpaulsson Thanks for reporting this, this project currently doesn't have a dedicated maintainer team as it's experimental, but let me tag a few people that may have some insights into this. @rudouglas / @lazyplatypus 👋

rudouglas commented 2 years ago

Hi @davidpaulsson apologies for the delay, delighted to see you using the plugin, i'll investigate this issue for you and let you know if i need any other info 😺

gigaSproule commented 2 years ago

I had a similar issue in regards to the workspace. I ended up having to resort to nohoist to get it to work.