Prebid.js: referenced 'registerAdserver' but it was never created

Created on 1 Aug 2019  路  6Comments  路  Source: prebid/Prebid.js

Type of issue

bug/question

Description

When I add a dfpAdServerVideo to my modules I get Warning in the console. I don't use this module in my webpage, it is only included into Prebid.js library.
blad-prebid

Steps to reproduce

  1. Use: gulp serve --modules=consentManagement,rubiconBidAdapter,adomikAnalyticsAdapter,dfpAdServerVideo
  2. On the site with active Prebid library above described Warning is present.

Expected results

My questions are:
Is it a bug?
How can I handle this issue?

Platform details

I tested Prebid.js version 2.26.0, 2.25.0 only.

pinned

Most helpful comment

@tandalevaibhav We have verified this and not a bug. This warning appears when an optional module is adds a hook on hook point which does not exist.

In this case, dfpAdserverVideo here is trying to add hook on categoryTranslation here but as categoryTranslation module is not included in build this warning is logged.

We are trying to fix this unwanted warning message

All 6 comments

@aszydlo Thanks for reporting this, I will check and get back to you.

+1, i get this as well and no idea if its something to worry about?

Just FYI, the warning is because the registerAdserver hook is defined in the categoryTranslation module (which isn't in your build) but is referenced in other modules such as the dfpAdServerVideo that are in your build.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

I am using Prebid 2.34.0
Getting the same warning as well as one other:-
"fun-hooks: referenced 'registerAdserver' but it was never created"
"fun-hooks: referenced 'adpod' but it was never created"
Is there anything I should worry about?

@tandalevaibhav We have verified this and not a bug. This warning appears when an optional module is adds a hook on hook point which does not exist.

In this case, dfpAdserverVideo here is trying to add hook on categoryTranslation here but as categoryTranslation module is not included in build this warning is logged.

We are trying to fix this unwanted warning message

Was this page helpful?
0 / 5 - 0 ratings

Related issues

matthewlane picture matthewlane  路  8Comments

marvinferreira picture marvinferreira  路  6Comments

eyedar picture eyedar  路  6Comments

mrpbennett picture mrpbennett  路  3Comments

amelzer picture amelzer  路  6Comments