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

Deprecation warning 'template-compiler.registerPlugin' does not provide a lot of information #9738

Closed
spuxx1701 opened this issue Dec 20, 2021 · 6 comments

Comments

@spuxx1701
Copy link

The following deprecation warning does not give me any information about what plugin is causing it.

Deprecation ID: template-compiler.registerPlugin
This is the console output:
https://deprecations.emberjs.com/v3.x/#toc_template-compiler-registerPlugin

| building... [Babel: ember-popper > applyPatches]
DEPRECATION: Using class based template compilation plugins is deprecated, please update to the functional style: SetTransform [deprecation id: template-compiler.registerPlugin]
        at logDeprecationStackTrace (C:\<my-project>\node_modules\ember-source\dist\ember-template-compiler.js:1984:21)
        at HANDLERS.<computed> (C:\<my-project>\node_modules\ember-source\dist\ember-template-compiler.js:2117:9)
        at raiseOnDeprecation (C:\<my-project>\node_modules\ember-source\dist\ember-template-compiler.js:2011:9)
        at HANDLERS.<computed> (C:\<my-project>\node_modules\ember-source\dist\ember-template-compiler.js:2117:9)
        at invoke (C:\<my-project>\node_modules\ember-source\dist\ember-template-compiler.js:2129:9)
        at deprecate (C:\<my-project>\node_modules\ember-source\dist\ember-template-compiler.js:2085:28)
        at wrapLegacyPluginIfNeeded (C:\<my-project>\node_modules\ember-source\dist\ember-template-compiler.js:20501:49)
        at C:\<my-project>\node_modules\ember-source\dist\ember-template-compiler.js:20482:16
        at Array.map (<anonymous>)

Maybe adding information required to find the plugin would be beneficial?

ember-cli: 3.28.4
ember-source: 3.28.8

@boris-petrov
Copy link
Contributor

I believe it is coming from ember-box.

@bertdeblock
Copy link
Contributor

This deprecation warning comes from ember-source, so maybe it's better if we move this issue to the Ember.js repo?

@cah-brian-gantzler
Copy link

I have the same issue but from discord I believe I have tracked mine down to ember-tooltips/ember-in-element-polyfill. Which is weird because Im on a high enough ember the polyfill is inert, but the check must be happening anyway.

What I was hoping for here was the solution to quick the noise til a fix can be made (assume moving to ember 4 will quiet it as well, just not there yet)

@gnclmorais
Copy link
Contributor

Did emberjs/ember.js#19704 perhaps address this deprecation?

@bertdeblock
Copy link
Contributor

I think the issue reported here is, that it's not clear which plugin is triggering this deprecation.
Though, the deprecation message does include the name of the plugin, being SetTransform.
A quick code search with SetTransform on emberobserver.com only returns a handful of addons, one of them being ember-box as mentioned here #9738 (comment), but it could also be that it's coming from one of the other addons that have a transform plugin (just check which ones you are using). I think the SetTransform name has just been copied from one addon to the other. Those addons are all from the same author.
I still think this issue should be closed here though, it's not an ember-cli issue.

@bertdeblock
Copy link
Contributor

I'm going to close this one if that's okay.
The deprecation does contain the name of the offending plugin (in this case: SetTransform) and is triggered by ember-source, not by ember-cli. I've also made ember-learn/deprecation-app#1129 to update the docs for this deprecation, so hopefully, it will be clearer for people running into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants