Change8
Error1 reports

Fix SyntaxError

in Bun

Solution

A "SyntaxError" in Bun often arises from duplicate export statements, especially when using code splitting or dynamic imports. To resolve this, carefully review your code and bundler configuration to ensure no modules are exporting the same symbol multiple times. Remove the duplicate export statements to eliminate the syntax error.

Related Issues

Real GitHub issues where developers encountered this error:

Timeline

First reported:Dec 20, 2025
Last reported:Dec 20, 2025

Need More Help?

View the full changelog and migration guides for Bun

View Bun Changelog