Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant