Cannot deploy Nuxt 3 project
# workers-help
c
It builds and uploads the whole project on pages but throws an exception after:
Success: Assets published!
The error is something I can't debug:
Copy code
Error: Failed to publish your Function. Got error: Uncaught TypeError: Cannot read properties of undefined (reading 'split')
  at functionsWorker-0.08355795516848574.js:5395:32
Is there a way to know what's going wrong here? For reference: Nuxt 3 + i18n/vue-i18n plugin.
w
I'd recommend trying
wrangler pages dev
and see if you can get a more useful line number
c
if only it were that easy
when running it I get an error that it needs more arguments
so I found online how to do it but turns out its bugged
wrangler pages dev --proxy 3000 -- nuxt dev
oh
wrangler pages dev -- npm run dev
does work
@Walshy | Pages i get no errors and it runs perfectly fine
Fixed it, had to use
npm run generate
as the deploy command in Cloudflare
g
Hello, I have a similar problem, and I open a issue. https://github.com/cloudflare/workers-sdk/issues/3144 But I use not PAGES but WORKERS for edge side rendering. So I can't run
npx nuxi generate
. I have to run
npx nuxi build
. Because it isn't pre-rendering.