question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@sentry/ember breaks ember-cli build when used with ember-data >= 4.6.1

See original GitHub issue

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/ember

SDK Version

7.12.1

Framework Version

7.12.1

Link to Sentry event

No response

Steps to Reproduce

  1. Install @sentry/ember using npm install --save-dev @sentry/ember
  2. Run project using npm start (which in turn runs ember serve)

Expected Result

Build completes successfully and ember-cli serves the project.

Actual Result

[broccoli-persistent-filter:Babel > [Babel: @ember-data/model]: Babel: @ember-data/model] was configured to `throwUnlessParallelizable` and was unable to parallelize a plugin.
plugins:
1: name: unknown, location: unknown

Please see: https://github.com/babel/broccoli-babel-transpiler#parallel-transpilation for more details


Stack Trace and Error Report: /var/folders/cq/l1v54dyd5qb_3p7pky5mf7f00000gn/T/error.dump.6c9d0a1e610cb2506c50b0bea57c3547.log
error.dump.6c9d0a1e610cb2506c50b0bea57c3547.log
=================================================================================

ENV Summary:

  TIME: Tue Sep 06 2022 23:35:03 GMT+0200 (Central European Summer Time)
  TITLE: ember
  ARGV:
  - /Users/pichfl/.volta/tools/image/node/16.17.0/8.15.0/bin/node
  - /Users/pichfl/Source/#PROJECTNAME/packages/tix-ui/node_modules/.bin/ember
  - serve
  - --ssl
  - --host=local.staging.tix.vlb.de
  EXEC_PATH: /Users/pichfl/.volta/tools/image/node/16.17.0/8.15.0/bin/node
  TMPDIR: /var/folders/cq/l1v54dyd5qb_3p7pky5mf7f00000gn/T
  SHELL: /usr/local/bin/fish
  PATH:
  - /Users/pichfl/Source/#PROJECTNAME/packages/tix-ui/node_modules/.bin
  - /Users/pichfl/.volta/tools/image/packages/pnpm/7.9.5/dist/node-gyp-bin
  - /Users/pichfl/Source/#PROJECTNAME/node_modules/.bin
  - /Users/pichfl/.volta/tools/image/node/16.17.0/8.15.0/bin
  - /Users/pichfl/.volta/tools/image/yarn/1.22.15/bin
  - /Users/pichfl/Library/pnpm
  - /usr/local/sbin
  - /Users/pichfl/.cargo/bin
  - /Users/pichfl/.fig/bin
  - /usr/local/bin
  - /usr/bin
  - /bin
  - /usr/sbin
  - /sbin
  - /Library/Apple/usr/bin
  PLATFORM: darwin x64
  FREEMEM: 724672512
  TOTALMEM: 17179869184
  UPTIME: 1289362
  LOADAVG: 14.45458984375,9.05224609375,7.27001953125
  CPUS:
  - Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz - 2600
  - Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz - 2600
  - Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz - 2600
  - Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz - 2600
  - Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz - 2600
  - Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz - 2600
  - Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz - 2600
  - Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz - 2600
  - Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz - 2600
  - Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz - 2600
  - Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz - 2600
  - Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz - 2600
  ENDIANNESS: LE
  VERSIONS:
  - ares: 1.18.1
  - brotli: 1.0.9
  - cldr: 41.0
  - icu: 71.1
  - llhttp: 6.0.7
  - modules: 93
  - napi: 8
  - nghttp2: 1.47.0
  - nghttp3: 0.1.0-DEV
  - ngtcp2: 0.1.0-DEV
  - node: 16.17.0
  - openssl: 1.1.1q+quic
  - tz: 2022a
  - unicode: 14.0
  - uv: 1.43.0
  - v8: 9.4.146.26-node.22
  - zlib: 1.2.11

ERROR Summary:

  - broccoliBuilderErrorStack: [undefined]
  - code: [undefined]
  - codeFrame: [undefined]
  - errorMessage: [broccoli-persistent-filter:Babel > [Babel: @ember-data/model]: Babel: @ember-data/model] was configured to `throwUnlessParallelizable` and was unable to parallelize a plugin. 
plugins:
1: name: unknown, location: unknown

Please see: https://github.com/babel/broccoli-babel-transpiler#parallel-transpilation for more details
  - errorType: [undefined]
  - location:
    - column: [undefined]
    - file: [undefined]
    - line: [undefined]
  - message: [broccoli-persistent-filter:Babel > [Babel: @ember-data/model]: Babel: @ember-data/model] was configured to `throwUnlessParallelizable` and was unable to parallelize a plugin. 
plugins:
1: name: unknown, location: unknown

Please see: https://github.com/babel/broccoli-babel-transpiler#parallel-transpilation for more details
  - name: Error
  - nodeAnnotation: [undefined]
  - nodeName: [undefined]
  - originalErrorMessage: [undefined]
  - stack: Error: [broccoli-persistent-filter:Babel > [Babel: @ember-data/model]: Babel: @ember-data/model] was configured to `throwUnlessParallelizable` and was unable to parallelize a plugin. 
plugins:
1: name: unknown, location: unknown

Please see: https://github.com/babel/broccoli-babel-transpiler#parallel-transpilation for more details
    at new Babel (/Users/pichfl/Source/#PROJECTNAME/node_modules/.pnpm/broccoli-babel-transpiler@7.8.1/node_modules/broccoli-babel-transpiler/index.js:90:11)
    at Class.transpileTree (/Users/pichfl/Source/#PROJECTNAME/node_modules/.pnpm/ember-cli-babel@7.26.11/node_modules/ember-cli-babel/index.js:170:16)
    at rollupPrivateModule (/Users/pichfl/Source/#PROJECTNAME/node_modules/.pnpm/@ember-data+private-build-infra@4.7.1/node_modules/@ember-data/private-build-infra/src/utilities/rollup-private-module.js:59:35)
    at Class.treeForAddon (/Users/pichfl/Source/#PROJECTNAME/node_modules/.pnpm/@ember-data+private-build-infra@4.7.1/node_modules/@ember-data/private-build-infra/src/addon-build-config-for-data-package.js:182:25)
    at Class.superWrapper [as treeForAddon] (/Users/pichfl/Source/#PROJECTNAME/node_modules/.pnpm/core-object@3.1.5/node_modules/core-object/lib/assign-properties.js:34:20)
    at Class._treeFor (/Users/pichfl/Source/#PROJECTNAME/node_modules/.pnpm/ember-cli@4.6.0/node_modules/ember-cli/lib/models/addon.js:668:33)
    at Class.treeFor (/Users/pichfl/Source/#PROJECTNAME/node_modules/.pnpm/ember-cli@4.6.0/node_modules/ember-cli/lib/models/addon.js:628:21)
    at /Users/pichfl/Source/#PROJECTNAME/node_modules/.pnpm/ember-cli@4.6.0/node_modules/ember-cli/lib/models/addon.js:497:26
    at Array.reduce (<anonymous>)
    at Class.eachAddonInvoke (/Users/pichfl/Source/#PROJECTNAME/node_modules/.pnpm/ember-cli@4.6.0/node_modules/ember-cli/lib/models/addon.js:494:24)

=================================================================================

Sadly the log above isn’t helpful at all as it doesn’t even reference the sentry plugin. But I can confirm that the project runs fine without it.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dagroecommented, Oct 7, 2022

As another hint: I came across the the error in this issue again while running tests (ember serve was fine):

[broccoli-persistent-filter:Babel > [Babel: @ember-data/model]: Babel: @ember-data/model] was configured to `throwUnlessParallelizable` and was unable to parallelize a plugin. 
plugins:
1: name: unknown, location: unknown

Please see: https://github.com/babel/broccoli-babel-transpiler#parallel-transpilation for more details

Turns out my test config was setting sentry.dsn to undefined in my config/environment.js, which caused the error. Setting null or '' solved the issue for me.

0reactions
dagroecommented, Nov 23, 2022

Hi, I got the same error when adding @sentry/ember to my project.

[broccoli-persistent-filter:Babel > [Babel: @ember-data/adapter]: Babel: @ember-data/adapter] was configured to `throwUnlessParallelizable` and was unable to parallelize a plugin.
plugins:
1: name: unknown, location: unknown

Please see: https://github.com/babel/broccoli-babel-transpiler#parallel-transpilation for more details


Stack Trace and Error Report: /var/folders/pm/ygg73cqd5497l3g9wwp3sn680000gn/T/error.dump.8c6a4e444174caa4ef8d5693973ca1e1.log

Downgrading ember-data to version 4.6.4 or 4.5.* doesn’t work.

For me that was cause by old versions of @embroider/macros, so I’d check what versions of @embroider/macros are used in all dependencies, e.g. yarn why @embroider/macros.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ember | Sentry Documentation
Sentry's Ember addon enables automatic reporting of errors, exceptions, and transactions. On this page, we get you up and running with Sentry's SDK,...
Read more >
Asset compilation - Advanced use - Ember CLI Guides
When working on an Ember app, sometimes you may want to customize how certain kinds of assets are handled. This is referred to...
Read more >
Static Site Build Failing - help debug? - Render community
Below is the error I'm getting. Not sure what is causing it. The build works on Netlify just fine. Wanted to port to...
Read more >
Ember deploy script failing on specific npm package
I'm trying to deploy to my staging environment using ember deploy and continue to get this error which breaks the build.
Read more >
Sentry error reporting for Ember.js | Mainmatter - Simplabs
Tobias Bieniek explains how to set up Sentry for Ember.js applications using @sentry/browser instead of the now unnecessary ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found