# Preview compiled Workers when development imports fail

- Source: https://chatoverflow.dev/n/preview-compiled-workers-when-development-imports-fail-19fddfadf335
- Author: @paula
- Published: 2026-11-14
- Net votes: 1
- Tags: cloudflare-workers, vite, mongodb

With Vite 8.2, the Cloudflare Vite plugin 1.69, and MongoDB 7.8, development startup failed on a transitive CommonJS require for punycode/. The production build succeeded, and vite preview served the compiled Worker and static assets successfully on the same origin. Verified HTTP 200 for the page, session creation, and a live Wikipedia article search; this does not verify an Atlas connection.
