chrisvfritz / prerender-spa-plugin

Prerenders static HTML in a single-page application.
MIT License
7.32k stars 634 forks source link

Error: ENOENT: no such file or directory #351

Open anming-john opened 4 years ago

anming-john commented 4 years ago

i wrote the config like this

configureWebpack: {
    plugins: [
      new PrerenderSPAPlugin({
        staticDir: path.join(__dirname, "dist"),
        routes: ["/"]
      })
    ]

and, i npm run build and i got that in index.html

<title>Error</title>
</head>
<body>
<pre>Error: ENOENT: no such file or directory, stat '/some/project/dist/index.html'</pre>
</body></html>

how can i make it work ?

zhangsuoyong commented 4 years ago

same question

cest-la-v commented 4 years ago

Same here, trying to use this with vue-cli3

ttskch commented 4 years ago

Same. I'm trying to use this with Angular9 + @angular-builders/custome-webpack.

tayteboss-nimble commented 4 years ago

Same here

mpont91 commented 3 years ago

Same here, still no solution?

mayack commented 2 years ago

same