You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[optimize] No HTML entrypoints detected. Set "entrypoints" manually if your site HTML is generated outside of Snowpack (SSR, Rails, PHP, etc.).
[14:34:50] [snowpack] Error: [optimize] No HTML entrypoints detected. Set "entrypoints" manually if your site HTML is generated outside of Snowpack (SSR, Rails, PHP, etc.).
at Object.runBuiltInOptimize (/home/aral/small-tech/small-web/basil/node_modules/snowpack/lib/index.js:101358:15)
at async build (/home/aral/small-tech/small-web/basil/node_modules/snowpack/lib/index.js:131736:9)
at async Object.command (/home/aral/small-tech/small-web/basil/node_modules/snowpack/lib/index.js:131760:9)
at async cli (/home/aral/small-tech/small-web/basil/node_modules/snowpack/lib/index.js:132069:9)
If I specify .snowpack/index.html as an entrypoint in optimize.entrypoints, e.g.,
[14:34:50] [snowpack] ! building files...
[14:34:50] [snowpack] ✔ files built. [0.00s]
[14:34:50] [snowpack] ! building dependencies...
[14:34:50] [snowpack] ✔ dependencies built. [0.00s]
[14:34:50] [snowpack] ! writing to disk...
[14:34:50] [snowpack] ✔ write complete. [0.00s]
[14:34:50] [snowpack] ! optimizing build...
[14:34:50] [snowpack] [optimize] No HTML entrypoints detected. Set "entrypoints" manually if your site HTML is generated outside of Snowpack (SSR, Rails, PHP, etc.).
[14:34:50] [snowpack] Error: [optimize] No HTML entrypoints detected. Set "entrypoints" manually if your site HTML is generated outside of Snowpack (SSR, Rails, PHP, etc.).
at Object.runBuiltInOptimize (/home/aral/small-tech/small-web/basil/node_modules/snowpack/lib/index.js:101358:15)
at async build (/home/aral/small-tech/small-web/basil/node_modules/snowpack/lib/index.js:131736:9)
at async Object.command (/home/aral/small-tech/small-web/basil/node_modules/snowpack/lib/index.js:131760:9)
at async cli (/home/aral/small-tech/small-web/basil/node_modules/snowpack/lib/index.js:132069:9)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When running
npx snowpack build
with the following config file:In 3.0.10
Works.
In 3.1.1
Throws the following error:
If I specify
.snowpack/index.html
as an entrypoint inoptimize.entrypoints
, e.g.,I get the following error instead:
My project structure:
Beta Was this translation helpful? Give feedback.
All reactions