Replies: 3 comments
-
Hi! Thanks for the issue. Are you sure that the pages are actually created? Gatsby will print the warning even when the pages are not created in the end. You can check this by looking into your |
Beta Was this translation helpful? Give feedback.
0 replies
-
@LekoArts you right, the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ah, now I understand the issue. You have two options then:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I'm trying to exclude all utils/components files in /pages directory
e.g.:
src/pages/page-a/components/component.js
src/pages/theme/page-b/components/component.js
src/pages/theme/page-b/utils/index.js
src/pages/page-a/utils/index.js
/pages/utils.js
and etc.
I use the onCreatePage action for it and it works as expected only in develop mode. Build will show the error:
Steps to reproduce
I've create a sample repo where you can easily reproduce the bug. See https://github.com/serejajar/gatsbyjs-bug-with-deletePage
Expected result
I had expected that utils files will be excluded using the deletePage for build too.
Actual result
As outlined in the description, the GatsbyJS trying to create pages from the utils files.
Environment
Beta Was this translation helpful? Give feedback.
All reactions