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

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

Open
runspired opened this issue Feb 25, 2023 · 0 comments
Open

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

runspired opened this issue Feb 25, 2023 · 0 comments

Comments

@runspired
Copy link

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 
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant