Skip to content

Command - bun run preview error in full stack applications #906

@josercarmo

Description

@josercarmo

Description

Mostly bun commands with Imba is working fine, all commands to client applications is ok :
bunx imba create
bun dev
bun run build
bun run preview
`
But only one command is not working in full stack applications(with express.js)
bun run preview

This one throw the following errors;

TypeError: The listener must be a function
at checkListener (node:events:424:7)
at removeListener (node:events:178:16)
at new Server (.../imba-server/dist/server.js:2:9588)
at wrap (../imba-server/dist/server.js:2:8605)
at ee (../imba-server/dist/server.js:7:539)
at /../imba-server/dist/server.js:20:131

`

I am using WSL2, Ubuntu.

Reproduction

No response

System Environment

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions