-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
SyntaxError: Indirectly exported binding name 'default' cannot be resolved by star export entries #74
Comments
This is most likely a CommonJS <> ESM interop issue. If you use For now, try replacing usages of // Instead of this
export * from 'lodash';
// Try this
import {camelCase} from 'lodash';
export {camelCase}; You can find where git grep "export \* from" This only applies to app code. Running If that doesn't workTry starting Bun without SSR/pre-rendering enabled: bun --disable-bun.js This disables Bun's JavaScript runtime environment from trying to render your Next.js pages into HTML. It will make it a little slower to show pages on start and mean any code in |
Thanks for the help!
|
@Jarred-Sumner I seem to be hitting this issue but not during build, only when running bun test |
I'm also encountering this during tests. |
Could also be related type-only import/exports, ex Error ❌ export { SurveyQuestion, SurveyQuestionType } from "./cards"; vs Working ✅ export type { SurveyQuestion, SurveyQuestionType } from "./cards"; |
I just ran into this with bun and the above comment fixed it. In my case I have to split my export { AssistantDefinition, definition } from "./definition";
//ERR: SyntaxError: Indirectly exported binding name 'AssistantDefinition' is not found. export { definition } from "./definition";
export type { AssistantDefinition } from "./definition"; |
You are an angel |
Hello!
I'm hitting the following while trying bun on an existing nextjs project. Any suggestions on how to debug?
The text was updated successfully, but these errors were encountered: