Skip to content

Bug in ContentAnswersOpenButton.scss prevents loading components using NextJS turbopack. #4073

Description

@mtucker

Environment:

  • Elements version: 23.1.0

Desktop (please complete the following information):

  • OS: MacOS 15.4
  • Browser: Chrome & Safari
  • Version: Chrome 135.0.7049.115

Steps to reproduce the problem:

  • Embed ContentExplorer in a NextJS app.
  • Run the app in turbopack mode (next dev --turbo)
  • Visit the page.
  • Observe the error in the screenshot below.

The issue is invalid SCSS/CSS in ContentAnswersOpenButton line 8:

// current
border: var(--border-1 solid #2222224d);

// should be
border: var(--border-1) solid #2222224d;

Turbopack has a more strict CSS parser than Webpack so the issue is only raising an error when running NextJS in turbopack mode.

What is the expected behavior? (Screenshots can be helpful here)
Expecting the ContentExplorer to render correctly

What went wrong? (Screenshots, console logs, or HAR files can be helpful here)

Image

Link to application or sample code:

If relevant, link to file (or attach file here)
https://github.com/box/box-ui-elements/blob/master/src/elements/common/content-answers/ContentAnswersOpenButton.scss#L8

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions