Pnp-modern-search: bias of null

Created on 16 Jun 2021  路  3Comments  路  Source: microsoft-search/pnp-modern-search

Version used
4.2.3

Describe the bug
I used the 3.19 Version But got Problems so i updated to the newest Version. But both Version have the same Problem:
Cannot read property 'Bias' of null

To Reproduce
Steps to reproduce the behavior:
I used the Szenario 1 Tutorial https://microsoft-search.github.io/pnp-modern-search/scenarios/create-simple-search-page/

  • Created a new site
  • added PnP - Search Box
  • added PnP - Search Results
  • configurate the Results

Expected behavior
Normally the Results-Zone should show something like: "Go to config screen".
I can go into Config menu and select "SharePoint Search" and "Microsoft Search" But after this nothing happend. Normaly i can select more options after this.
I look into console there are this two Errors:

Error 1

modern-search-results-web-part_3e04f2f138516f5519c6.js:1 Uncaught (in promise) TypeError: Cannot read property 'Bias' of null
    at e.<anonymous> (modern-search-results-web-part_3e04f2f138516f5519c6.js:1)
    at modern-search-results-web-part_3e04f2f138516f5519c6.js:1
    at Object.next (modern-search-results-web-part_3e04f2f138516f5519c6.js:1)
    at modern-search-results-web-part_3e04f2f138516f5519c6.js:1
    at new Promise (<anonymous>)
    at y (modern-search-results-web-part_3e04f2f138516f5519c6.js:1)
    at modern-search-results-web-part_3e04f2f138516f5519c6.js:1
    at e._processPendingCallbacks (sp-pages-assembly_de-de_96be9946e73d40d3a5273cf1c4e03935.js:65)
    at e.finish (sp-pages-assembly_de-de_96be9946e73d40d3a5273cf1c4e03935.js:65)
    at t.initializeWebPartServices (modern-search-results-web-part_3e04f2f138516f5519c6.js:1)

Error 2

modern-search-results-web-part_3e04f2f138516f5519c6.js:1 Uncaught (in promise) TypeError: Cannot read property 'unregisterPartial' of undefined
    at e.<anonymous> (modern-search-results-web-part_3e04f2f138516f5519c6.js:1)
    at modern-search-results-web-part_3e04f2f138516f5519c6.js:1
    at Object.next (modern-search-results-web-part_3e04f2f138516f5519c6.js:1)
    at modern-search-results-web-part_3e04f2f138516f5519c6.js:1
    at new Promise (<anonymous>)
    at y (modern-search-results-web-part_3e04f2f138516f5519c6.js:1)
    at e.registerResultTypes (modern-search-results-web-part_3e04f2f138516f5519c6.js:1)
    at t.<anonymous> (modern-search-results-web-part_3e04f2f138516f5519c6.js:1)
    at modern-search-results-web-part_3e04f2f138516f5519c6.js:1
    at Object.next (modern-search-results-web-part_3e04f2f138516f5519c6.js:1)

Screenshots
View from 4.2.3
pnp-search-4-error

Error in Version 3.19 here it shows the error in the webpart zone
pnp-search-3-error-2

Desktop (please complete the following information):
Chrome

Additional context
sppkg is installed Global.

bug v3

All 3 comments

Seems for some reason it cannot read your sites time settings. Can you share the site's language/region/time settings?

The requested Settings.
MicrosoftTeams-image
MicrosoftTeams-image (1)
MicrosoftTeams-image (2)

hmm after this i tested with timezone europa UTC+1 and it worked. THX for the hint.
Don't know if this is a Sharepoint or a WebPart Bug. Pls Decide how u want to handle the bug.
If you want i can test some things.

We'll add a fix for this where a timezone don't have a defined bias.

Was this page helpful?
0 / 5 - 0 ratings