@sentry/ember breaks ember-cli build when used with ember-data >= 4.6.1
See original GitHub issueIs there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
SDK Version
7.12.1
Framework Version
7.12.1
Link to Sentry event
No response
Steps to Reproduce
- Install
@sentry/ember
usingnpm install --save-dev @sentry/ember
- Run project using
npm start
(which in turn runsember 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:
- Created a year ago
- Comments:8 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
As another hint: I came across the the error in this issue again while running tests (
ember serve
was fine):Turns out my test config was setting
sentry.dsn
toundefined
in myconfig/environment.js
, which caused the error. Settingnull
or''
solved the issue for me.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
.