Skip to content

Bug: lib (CJS) is outputting ESM #1250

@royletron

Description

@royletron

Describe Your Environment

Using StackBlitz, as well as local.

Describe the Problem

I feel like I am being a complete idiot, so I respect anyone who devotes any amount of time to assist me with this but I am struggling to get anything off the ground using NextJS and Spectacle together (I know SSR is a problem, but I don't even get that far). You can see the problem on the following Stackblitz (forked their NextJS example and added the Spectacle base example on top of it)

https://stackblitz.com/edit/nextjs-xzfjyb

And I get unexpected token export. Which I know is a Module format problem, but I can't make it work whatever I throw at it!

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✓ VerifiedOrg member or multiple community members can reproduce a given bug🐛 BugIssues or PRs that report or fix a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions