-
Notifications
You must be signed in to change notification settings - Fork 28.2k
Fix examples with relay-compiler #10976
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
Merged
timneutkens
merged 7 commits into
vercel:canary
from
messa:202003_fix_relay_compiler_examples
Mar 11, 2020
Merged
Fix examples with relay-compiler #10976
timneutkens
merged 7 commits into
vercel:canary
from
messa:202003_fix_relay_compiler_examples
Mar 11, 2020
+31
−30
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Stats from current PRDefault Server ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Rendered Page Sizes
Serverless Mode (Decrease detected ✓)General
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Serverless bundles Overall decrease ✓
|
Stats from current PRDefault Server ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Rendered Page Sizes
Serverless Mode (Decrease detected ✓)General
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Serverless bundles Overall decrease ✓
|
- Without checking if props.allBlogPosts exists it fails sometimes on "TypeError: Cannot read property 'edges' of undefined" - I have no idea how it could work before with Component.query().params.name, but maybe some dependent library API has changed
…t of pages dir Fixes Error: Build optimization failed: found page without a React Component as default export in pages/__generated__/pages_indexQuery.graphql
20e3459
to
5f6d118
Compare
Stats from current PRDefault Server ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Rendered Page Sizes
Serverless Mode (Decrease detected ✓)General
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Serverless bundles Overall decrease ✓
|
timneutkens
approved these changes
Mar 11, 2020
ScriptedAlchemy
pushed a commit
to module-federation/next.js
that referenced
this pull request
Mar 17, 2020
* Example with-react-relay-network-modern: update dependencies * Example with-react-relay-network-modern: move relay __generated__ out of pages dir * Example with-react-relay-network-modern: fix some errors - Without checking if props.allBlogPosts exists it fails sometimes on "TypeError: Cannot read property 'edges' of undefined" - I have no idea how it could work before with Component.query().params.name, but maybe some dependent library API has changed * Example with-relay-modern-server-express: update dependencies * Example with-relay-modern-server-express: move relay __generated__ out of pages dir Fixes Error: Build optimization failed: found page without a React Component as default export in pages/__generated__/pages_indexQuery.graphql * Example with-relay-modern: update dependencies * Example with-react-relay-network-modern: fix prettier errors
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes error
by configuring relay-compiler and babel-plugin-relay
artifactDirectory
to a directory outside of directorypages
in examples:Fixes #10646
Related to #9596, but a different approach.
The example
examples/with-relay-modern
need no fix because the issue was dodged in 71e29cd (#10150) by moving the graphql query out of pages dir.