Skip to content
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

RollupError with Cloudflare Pages Preset – Missing Semicolon in apiSwagger.js #3864

Open
didagu opened this issue Oct 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@didagu
Copy link

didagu commented Oct 30, 2024

What version of Effect is running?

0.69.8

What steps can reproduce the bug?

  1. Set up a Nuxt 3 project (version 3.12.3).
  2. Install and use the uploadthing (7.2.0) package which heavily uses the @effect/platform package (version 0.69.8 with Effect 3.10.3).
  3. Configure Nuxt Nitro to use the cloudflare_pages preset.
  4. Run the pnpm run build command.
  5. Observe the build failure with the Expected a semicolon error message.

What is the expected behavior?

The build should complete successfully without syntax errors when using the cloudflare_pages preset, allowing deployment to Cloudflare Pages.

What do you see instead?

The build fails with a RollupError due to an expected semicolon in the apiSwagger.js file of the @effect/platform package.
Screenshot 2024-10-30 at 23 17 29

Additional information

Temporary Workaround: Switching to the node-server preset in nitro works but is not compatible with Cloudflare Pages deployment.

@didagu didagu added the bug Something isn't working label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant