Entrypoint error when building simple react boilerplate from create-snowpack-app #3451
Unanswered
akshat46
asked this question in
Troubleshooting
Replies: 1 comment
-
@akshat46 Can you share a repo? I had a similar situation today and fixed it by setting the entrypoint to the |
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.
-
I am not sure what I am missing. I have a react app that I started a while back following the react guide. It's pretty much identical to the create-snowpack-app's react template.
Trying to build the react template gives same errors as the ones I am experiencing. How is the react template supposed to be built for production? Is it even possible without webpack or rollup plugins?
Setting
optimize.entrypoints
to a string value gives error:UNEXPECTED ENTRYPOINTS: index.html
and an array gives error:
Error: entrypoint "index.html" not found in either build or source:
I am also not sure what to set the entrypoints to set to. I have tried
index.html
,index.js
,src/index.js
,dist/index.js
,public/index.html
.Beta Was this translation helpful? Give feedback.
All reactions