Skip to content

Build fails with SWC: "SyntaxError: Invalid or unexpected token" when importing sqlx-ts binary #253

@Leo5878

Description

@Leo5878

When running the project with the SWC compiler, TypeScript files compile successfully, but then loading the compiled code fails with an error:

>  SWC  Running...
Successfully compiled: 71 files with swc (202.89ms)
Watching for file changes.
/sqlx-ts/target/debug/sqlx-ts:1
�ELF
^

SyntaxError: Invalid or unexpected token

I think this issue is related to #250

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions