Skip to content

Regression: Unexpected newline after type #556

@mhdcodes

Description

@mhdcodes

What version of astro are you using?

1.4.5

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

npm

What operating system are you using?

Linux

Describe the Bug

After update to astro@1.4.5, have been receiving a build error: ERROR: Unexpected newline after "type", This error dosn't happen on versions prior to astro@1.4.5

This error message is originating from this line I believe: https://github.com/evanw/esbuild/blob/master/internal/js_parser/js_parser.go#L6113

Link to Minimal Reproducible Example

codiume/orbit#74

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P5: urgentFix build-breaking bugs affecting most users, should be released ASAP (priority)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions