Skip to content

Error on creating Pages on the build command #27295

Answered by williamcosta
williamcosta asked this question in Help
Discussion options

You must be logged in to vote

@herecydev I found the build problem. I created some partials of my pages inside the pages folder, with the following path ./src/pages/partials/[partial_name]/index.tsx in the build I was trying to create pages from these partials as well.

The solution I saw is to put an underscore before the file names, correct?

In the npm run start the file names without underscore working, but in npm run build not working and cause a error build.

Replies: 8 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by LekoArts
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #27295 on October 19, 2020 09:00.