-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Cannot build on cloudflare #121
Comments
Glad to see I wasn't the only one with this issue, we have been building it on railway instead sadly, Cloudflare pages is the best host though sad to see this package hinders it. When I build on Cloudflare using the |
Hello, |
The issue is with carta. After removing carta package it builds. After adding carta, it fails to build. Everything else builds fine. |
I mean that the issue is with a dependency of Carta, not of you project. It's hard to tell without seeing where the problematic imports are used. |
Ah gotcha. The only reference to this issue I could find is here:
I just hoped you had a workaround for this issue |
Can you provide the |
Thanks to the file you provided I found the source of the import. It's // vfile/lib/index.js
import {minpath} from '#minpath'
import {minproc} from '#minproc'
import {urlToPath, isUrl} from '#minurl' Apparently, there should be a polyfill in place to replace the imports when node is not used. I don't know why it's not working and how it is implemanted. |
how can this be fixed? |
I'd suggest trying to install I currently do not have the time to look into this myself, but I could implement a possible fix you come up with. |
Well, I got it to work using the static adapter. Thanks for the help though! |
Hi! Could you look into this if you got time?
It's issue with VFIle class, like you mentioned. On searching vfile repo, this issue vfile/vfile#81 comes up. That issue references another issue which is still open. Any help would be appreciated! Thanks |
Hi, I'm quite busy at the moment and I don't have much time to look into this. Anyway, I tried to build using |
I can't build on cloudflare pages. Using svelte adapter-auto it chooses cloudflare's adapter.
However, it does build with adapter-node but it just returns 404.
It works fine on vercel.
Here are the relevant logs:
Could not resolve "node:process"... Could not resolve "node:path"... Could not resolve "node:URL"... (Expand for log)
These packages were not imported by me and it built fine after removing carta.
The text was updated successfully, but these errors were encountered: