-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Fix postgraphile websocket/subscription omission path #31
base: main
Are you sure you want to change the base?
Conversation
Please also update the yarn lock (assuming an upgrade is required to trigger the issue?) |
Updated with package upgrade |
new webpack.NormalModuleReplacementPlugin( | ||
/postgraphile\/build\/postgraphile\/http\/subscriptions\.js$/, | ||
/postgraphile\/build-turbo\/postgraphile\/http\/subscriptions\.js$/, | ||
`${__dirname}/src/postgraphile-http-subscriptions.js` | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is actually a fix unless you've set GRAPHILE_TURBO
which I don't think is set by default.
Instead, please throw away the yarn.lock
changes and duplicate this above block - once for non-turbo and once for turbo.
Thanks!
@benjie is there a reason in particular we would not want to update to the most recent version of postgraphile? |
No; just that I've tested this on older versions and I don't fancy testing it again because working with Lambda is a PITA. I'd rather go with a "known good" version. |
Description
On build for the lambda example webpack bundling fails on omission of subscriptions.js as the npm install path has changed
yarn lint:fix
passes.