Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

@glimmer/component breaks build in embroider-safe scenarios #406

Open
@runspired

Description

@runspired

version: 1.1.2
ember-source: 4.11
ember-cli: 4.10
@embroider/test-setup: 2.1.0

Error: macroCondition can only be used as the predicate of an if statement or ternary expression (This is an error on an internal node. Probably an internal error.)

Example failure: https://github.com/emberjs/data/actions/runs/4268369001/jobs/7430813129

at TraversalContext.visitQueue (/home/runner/work/data/data/node_modules/.pnpm/@babel+traverse@7.21.2/node_modules/@babel/traverse/lib/context.js:86:16)
        at PackagerRunner (@embroider/webpack)
  - name: Error
  - nodeAnnotation: @embroider/webpack
  - nodeName: PackagerRunner
  - originalErrorMessage: Module build failed (from ../../../../../home/runner/work/data/data/node_modules/.pnpm/thread-loader@3.0.4_webpack@5.75.0/node_modules/thread-loader/dist/cjs.js):
Thread Loader (Worker 1)
$TMPDIR/embroider/07923a/node_modules/.pnpm/@glimmer+component@1.1.2_@babel+core@7.21.0/node_modules/@glimmer/component/-private/component.js/component.js: macroCondition can only be used as the predicate of an if statement or ternary expression (This is an error on an internal node. Probably an internal error.)

    at File.buildCodeFrameError (/home/runner/work/data/data/node_modules/.pnpm/@babel+core@7.21.0/node_modules/@babel/core/lib/transformation/file/file.js:205:12)
    at NodePath.buildCodeFrameError (/home/runner/work/data/data/node_modules/.pnpm/@babel+traverse@7.21.2/node_modules/@babel/traverse/lib/path/index.js:105:21)
    at error 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions