-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm run build error #30
Comments
After I opened this issue I saw someone else had the same issue. |
Same issue here. Using W10. |
I haven't used GitHub Pages, but to my understanding, yes, you should be able to use |
I'll have to take a look at that error on my end. Unfortunately I don't have a Windows machine to test on, but maybe I can figure something out. Since the build seems to be failing to find the root |
Original svelte produced a public folder that could be copied to github
pages and Google Cloud Storage.
I have had no success in repeating that with svelte kit.
On Thu, 16 Feb 2023 at 18:47, Josh Collinsworth ***@***.***> wrote:
I'll have to take a look at that error on my end. Unfortunately I don't
have a Windows machine to test on, but maybe I can figure something out.
Since the build seems to be failing to find the root /api/posts/page/
route, maybe there's something that can be done with adding a server route
there to handle that, just so a file is generated?
—
Reply to this email directly, view it on GitHub
<#30 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA2HFC2RPBZJEXZWXCBNHW3WXZRZZANCNFSM6AAAAAAUZBC6CM>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
/Christer Nilsson
070-749 6800
|
@ChristerNilsson If the build succeeds, it will result in a @rgrcnh I'm sorry, I don't have any way of reproducing the error on my end. Could you ask in the Svelte Discord, perhaps? I'll be happy to make any updates necessary; I just don't have the ability to test and find out what those might be on my end without Windows. |
it seems that the error lies with the wildcard * in the config. but im not sure. has anyone find a fix for this problem yet? |
This error is occuring on Linux as well, it just fails in a different place.
|
I'm still getting this error. Any updates? |
When I do a git clone; cd repo; npm i; npm run build... it show the following error on missing file/folder...
.svelte-kit/output/server/index.js 80.14 kB
301 /blog/page -> /blog
301 /blog/category/page/* -> /blog
301 /blog/page/* -> /blog
node:fs:600
handleErrorFromBinding(ctx);
^
Error: ENOENT: no such file or directory, open 'C:\Users\xquis\Documents\develop\sveltekit-blog-starter.svelte-kit/output/prerendered/pages/api/posts/page/'
at Object.openSync (node:fs:600:3)
at writeFileSync (node:fs:2221:35)
at save (file:///C:/Users/xquis/Documents/develop/sveltekit-blog-starter/node_modules/@sveltejs/kit/src/core/prerender/prerender.js:348:4)
at visit (file:///C:/Users/xquis/Documents/develop/sveltekit-blog-starter/node_modules/@sveltejs/kit/src/core/prerender/prerender.js:212:3) {
errno: -4058,
syscall: 'open',
code: 'ENOENT',
path: 'C:\Users\xquis\Documents\develop\sveltekit-blog-starter\.svelte-kit/output/prerendered/pages/api/posts/page/'
}
Node.js v18.13.0
[vite-plugin-sveltekit-compile] Prerendering failed with code 1
error during build:
Error: Prerendering failed with code 1
at ChildProcess. (file:///C:/Users/xquis/Documents/develop/sveltekit-blog-starter/node_modules/@sveltejs/kit/src/exports/vite/index.js:551:15)
at ChildProcess.emit (node:events:513:28)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)
PS C:\Users\xquis\Documents\develop\sveltekit-blog-starter>
The text was updated successfully, but these errors were encountered: