You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having an issue seeing compiled dist changes using gatsby-dev in a workspace setup.
Relevant information
Our gatsby site is set up in a monorepo using yarn workspaces
I've followed the documentation for testing changes using gatsby dev.
I get this message changing my package.json to use the forked version.
$ gatsby-dev --packages gatsby
Yarn workspace found.
Starting local verdaccio server
[2019-10-08 10:34:46] warn --- Verdaccio started
Started local verdaccio server
Publishing gatsby@2.15.7-dev-1570527286941 to local registry
Published gatsby@2.15.7-dev-1570527286941 to local registry
Installing packages from local registry:
- gatsby
Changing deps in ..../packages/my-gatsby-site/package.json to use @gatsby-dev
Installation complete
When running a build, I had an issue with resolving node_modules,
success run static queries - 0.096 s — 11/11 149.57 queries/second
ERROR #98123 WEBPACK
Generating JavaScript bundles failed
Cannot find module '@babel/plugin-proposal-class-properties' from '..../packages/my-gatsby-site'
File: .cache/production-app.js
I fixed this issue by using nohoist in my workspace config. This issue has been mentioned before in #11780.
When making changes in my forked gatsby while running the watch command yarn run watch --scope=gatsby if i run gatsby-dev --packages gatsby I'm expecting these changes copied to my local gatsby site's node_modules
To see my updates, I either have to delete all my node_modules, clear cache and run yarn install, or copy the dist folder from my fork into my local site.
I've seen that if gatsby is set as a dependency in the root package.json, this resolves the node_modules issue, but i feel like this is a workaround for workspace setup.
I can't find anything in the docs; any help would be great
The text was updated successfully, but these errors were encountered:
StuartRayson
changed the title
gatsby-dev not copying dist files in a workspace/monorepo setup
[gatsby-dev] not copying dist files in a workspace/monorepo setup
Oct 9, 2019
gatsbotbot
added
the
stale?
Issue that may be closed soon due to the original author not responding any more.
label
Oct 30, 2019
We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! 💪💜
It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it.
Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m HUMAN_EMOTION_SORRY. Please feel free to reopen this issue or create a new one if you need anything else.
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks again for being part of the Gatsby community!
Summary
I'm having an issue seeing compiled dist changes using gatsby-dev in a workspace setup.
Relevant information
Our gatsby site is set up in a monorepo using yarn workspaces
I've followed the documentation for testing changes using gatsby dev.
I get this message changing my package.json to use the forked version.
When running a build, I had an issue with resolving node_modules,
I fixed this issue by using
nohoist
in my workspace config. This issue has been mentioned before in #11780.When making changes in my forked gatsby while running the watch command
yarn run watch --scope=gatsby
if i rungatsby-dev --packages gatsby
I'm expecting these changes copied to my local gatsby site's node_modulesTo see my updates, I either have to delete all my node_modules, clear cache and run yarn install, or copy the dist folder from my fork into my local site.
I've seen that if gatsby is set as a dependency in the root package.json, this resolves the node_modules issue, but i feel like this is a workaround for workspace setup.
I can't find anything in the docs; any help would be great
Environment
The text was updated successfully, but these errors were encountered: