dep problems sveltekit cloudflare-adapter when building
I can't build because of adapter-cloudflare's deps being wrong node modules? but the error must come from the adapter....
When I run build, it spits out many errors like:
from the deps like
youch
. When I npm ls youch
, it spits out:
So the adapter is throwing the error of an incompatibility essentially of its own dependencies....
[email protected]1 Reply
There's also about 8 similar errors with
wrangler
regarding using nodemodules
Found out the problem. For future searchers:
You cannot use getPlatformProxy()
outside of dev (specifically can't use outside of Node environmnets per the docs), so simply use a conditional dynamic import for dev.