SolidJSS
SolidJS2mo ago
17 replies
Denis

CloudFlare Function publishing fails with SyntaxError

I have SolidStart project with SSR.
I've started experiencing error with CloudFlare deployments after some changes in the source code, before that it worked for months:
09:52:05.552    ✨ Upload complete!
09:52:10.602    Success: Assets published!
09:52:11.745    Error: Failed to publish your Function. Got error: Uncaught SyntaxError: Export 'D' is not defined in module
  at chunks/nitro/nitro.mjs:1:341661

Tried different changes in app.config.js but nothing helped.
The worst is that when I run
npm run build
locally and check the dist/_worker.js/chunks/nitro/nitro.mjs file contents I can't find the export D at the line/column position specified in the error message. Not sure how to debug it.
Was this page helpful?