-
Notifications
You must be signed in to change notification settings - Fork 328
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
Legacy Edge: 'Something went wrong' #803
Comments
This falls under IE11 as that gives the same error. If someone want to figure out which part fail and how to fix it we'll consider adding this, but not a priority. Took a quick look and seems the use of back tick ` in one of the language resource files can be the culprit as this fails for the label |
Thanks, @wobba , would love to help but I've limited programming skills. If no solution is planned do we need to update the 'supported browsers' documentation if Microsoft Edge is prioritised at the same level as IE11? |
Good point... Edge is a bastard browser ;) I'll take a look at it and either make it work or change the docs. |
@FranckyC I think the issue is related to the regex |
@wobba this RegExp is used to match the tokens in a expression. Because of the escape feature ( |
Feel free to propose an improved regex without the need to use negative lookbehind. RegExps are definitely not my friends ;) |
@FranckyC can you explain what the existing tries to match with a full template example, then I'll give it a shot.. regex being my middle name 😉 If you look at the screenshot I pasted, which ones should it match and not? |
The regex could be simplified, but then I got a new error |
Hi @wobba, I submitted a PR to fix legacy Edge. |
fix regex in tokenservice.ts that broke legacy edge. Fix #803
Version used
v.4
Describe the bug
When using Edge (the legacy version, not Chromium), all search web parts are returning a 'Something went wrong' error.
To Reproduce
In the web part:
Something went wrong
If the problem persists, contact the site administrator and give them the information in Technical Details.
Technical Details
[SPLoaderError.loadComponentError]:
Failed to load component "544c1372-7e5a-49ec-8db6-812f76c375f2" (pnpSearchBoxWebPart). Original error: Failed to load entry point from component "544c1372-7e5a-49ec-8db6-812f76c375f2" (pnpSearchBoxWebPart). Original error: Error loading https://component-id.invalid/544c1372-7e5a-49ec-8db6-812f76c375f2_4.0.0
https://component-id.invalid/544c1372-7e5a-49ec-8db6-812f76c375f2_4.0.0 did not call System.register or AMD define. If loading a global module configure the global name via the meta exports property for script injection support.
INNERERROR:
Failed to load entry point from component "544c1372-7e5a-49ec-8db6-812f76c375f2" (pnpSearchBoxWebPart). Original error: Error loading https://component-id.invalid/544c1372-7e5a-49ec-8db6-812f76c375f2_4.0.0
https://component-id.invalid/544c1372-7e5a-49ec-8db6-812f76c375f2_4.0.0 did not call System.register or AMD define. If loading a global module configure the global name via the meta exports property for script injection support.
CALLSTACK:
Error
at t (https://modern.akamai.odsp.cdn.office.net/files/sp-client/sp-pages-assembly_en-gb_3bd41198ddcc4fb60ad4cb3b908ba56b.js:65:19744)
at t (https://modern.akamai.odsp.cdn.office.net/files/sp-client/sp-pages-assembly_en-gb_3bd41198ddcc4fb60ad4cb3b908ba56b.js:65:164849)
at e.buildErrorWithVerboseLog (https://modern.akamai.odsp.cdn.office.net/files/sp-client/sp-pages-assembly_en-gb_3bd41198ddcc4fb60ad4cb3b908ba56b.js:65:202170)
at e.buildLoadComponentError (https://modern.akamai.odsp.cdn.office.net/files/sp-client/sp-pages-assembly_en-gb_3bd41198ddcc4fb60ad4cb3b908ba56b.js:65:198209)
at Anonymous function (https://modern.akamai.odsp.cdn.office.net/files/sp-client/chunk.systemjs-component-loader_en-us_e9a67ba8f78a23d77103.js:1:66051)
In the browser console:
8 SCRIPT5018: SCRIPT5018: Unexpected quantifier
modern-search-box-web-part_9074f229281a1cf1383d2638f9abb400.js (1,299943)
0: Failed to load component "544c1372-7e5a-49ec-8db6-812f76c375f2" (pnpSearchBoxWebPart). Original error: Failed to load entry point from component "544c1372-7e5a-49ec-8db6-812f76c375f2" (pnpSearchBoxWebPart). Original error: Error loading https://relative-path.invalid/tslib as "tslib" from https://component-id.invalid/544c1372-7e5a-49ec-8db6-812f76c375f2_4.0.0
Unable to load script https://relative-path.invalid/tslib
sp-pages-assembly_en-gb_3bd41198ddcc4fb60ad4cb3b908ba56b.js (64,212294)
0: Failed to load component "544c1372-42df-47c3-94d6-017428cd2baf" (pnpSearchResultsWebPart). Original error: Failed to load entry point from component "544c1372-42df-47c3-94d6-017428cd2baf" (pnpSearchResultsWebPart). Original error: Error loading https://relative-path.invalid/tslib as "tslib" from https://component-id.invalid/544c1372-42df-47c3-94d6-017428cd2baf_4.0.0
Unable to load script https://relative-path.invalid/tslib
sp-pages-assembly_en-gb_3bd41198ddcc4fb60ad4cb3b908ba56b.js (64,212294)
2CSP14317: Ignoring 'unsafe-inline' for directive 'script-src' in Content-Security-Policy because nonce or hash value is specified.
HTTP500: SERVER ERROR - The server encountered an unexpected condition that prevented it from fulfilling the request.
(XHR)GET - https://tenant.sharepoint.com/_api/search/query?QueryText='*'&QueryTemplate='(%7Bsearchterms%7D)%20ContentTypeId%3A0x0101009D1CB255DA76424F860D91F20E6C4118*%20AND%20PromotedState%3A2%20AND%20Path%3A%22https%3A%2F%2Ftenant.sharepoint.com%2Fsites%2FBCC-CWG%2F%22%20AND%20(SPTranslationLanguage%3Aen-us%20OR(NOT%20SPTranslatedLanguages%3Aen-us%20AND%20NOT%20SPIsTranslation%3Atrue))'&HitHighlightedProperties='Title'&StartRow=0&RowLimit=100&Properties='ClientFunction%3ANews%2CEnableMultiGeoSearch%3Afalse'&sortlist='LastModifiedTime%3Adescending'&SelectProperties='ContentClass%2CContentTypeId%2CDefaultEncodingURL%2CDocId%2CEditorOWSUSER%2CFileExtension%2CGeoLocationSource%2CLastModifiedTime%2CModifiedBy%2CPath%2CSPWebUrl%2CSecondaryFileExtension%2CServerRedirectedUrl%2CSiteId%2CTitle%2CUniqueId%2CWebId'&ClientType='TeamSiteSearch'&EnableQueryRules=false&suxrid=ms-oil-datasource-search-news-suggestions
In the Sharepoint console:
2021/02/24 13:25:35.010errorMySiteCache.Page has not yet g
2021/02/24 13:25:35.512errorOtherGlobalError.window.onerroError:Unexpected quantifier, file:https://tenant.sharepoint.com/sites/LiveAppCatalog/ClientSideAssets/59903278-dd5d-4e9e-bef6-562aae716b8b/modern-search-box-web-part_9074f229281a1cf1383d2638f9abb400.js, line:1, column:299943
2021/02/24 13:25:35.541errorOtherGlobalError.window.onerroError:Unexpected quantifier, file:https://tenant.sharepoint.com/sites/LiveAppCatalog/ClientSideAssets/59903278-dd5d-4e9e-bef6-562aae716b8b/modern-search-box-web-part_9074f229281a1cf1383d2638f9abb400.js, line:1, column:299943
2021/02/24 13:25:35.659errorOtherGlobalError.window.onerroError:Unexpected quantifier, file:https://tenant.sharepoint.com/sites/LiveAppCatalog/ClientSideAssets/59903278-dd5d-4e9e-bef6-562aae716b8b/modern-search-results-web-part_3ca3954ff7cd63af5ad33d2a16997f6d.js, line:1, column:2179837
2021/02/24 13:25:35.711errorOtherGlobalError.window.onerroError:Unexpected quantifier, file:https://tenant.sharepoint.com/sites/LiveAppCatalog/ClientSideAssets/59903278-dd5d-4e9e-bef6-562aae716b8b/modern-search-box-web-part_9074f229281a1cf1383d2638f9abb400.js, line:1, column:299943
2021/02/24 13:25:35.881errorOtherGlobalError.window.onerroError:Unexpected quantifier, file:https://tenant.sharepoint.com/sites/LiveAppCatalog/ClientSideAssets/59903278-dd5d-4e9e-bef6-562aae716b8b/modern-search-results-web-part_3ca3954ff7cd63af5ad33d2a16997f6d.js, line:1, column:2179837
2021/02/24 13:25:36.147errorOtherGlobalError.window.onerroError:Unexpected quantifier, file:https://tenant.sharepoint.com/sites/LiveAppCatalog/ClientSideAssets/59903278-dd5d-4e9e-bef6-562aae716b8b/modern-search-box-web-part_9074f229281a1cf1383d2638f9abb400.js, line:1, column:299943
2021/02/24 13:25:36.256errorOtherGlobalError.window.onerroError:Unexpected quantifier, file:https://tenant.sharepoint.com/sites/LiveAppCatalog/ClientSideAssets/59903278-dd5d-4e9e-bef6-562aae716b8b/modern-search-results-web-part_3ca3954ff7cd63af5ad33d2a16997f6d.js, line:1, column:2179837
2021/02/24 13:25:36.714errorOtherGlobalError.window.onerroError:Unexpected quantifier, file:https://tenant.sharepoint.com/sites/LiveAppCatalog/ClientSideAssets/59903278-dd5d-4e9e-bef6-562aae716b8b/modern-search-results-web-part_3ca3954ff7cd63af5ad33d2a16997f6d.js, line:1, column:2179837
2021/02/24 13:25:38.378errorSPComponentLoader.loadComponenAttempted to load component "544c1372-7e5a-49ec-8db6-812f76c375f2" (pnpSearchBoxWebPart) 3 times without success.
2021/02/24 13:25:38.686errorSPComponentLoader.loadComponenAttempted to load component "544c1372-42df-47c3-94d6-017428cd2baf" (pnpSearchResultsWebPart) 3 times without success.
2021/02/24 13:25:40.969errorSPComponentLoader.loadComponenAttempted to load component "544c1372-7e5a-49ec-8db6-812f76c375f2" (pnpSearchBoxWebPart) 3 times without success.
2021/02/24 13:25:42.038errorSPComponentLoader.loadComponenAttempted to load component "544c1372-42df-47c3-94d6-017428cd2baf" (pnpSearchResultsWebPart) 3 times without success.
2021/02/24 13:25:43.826errorSPComponentLoader.loadComponenAttempted to load component "544c1372-7e5a-49ec-8db6-812f76c375f2" (pnpSearchBoxWebPart) 3 times without success.
2021/02/24 13:25:43.847errorWebPartZone.LoadWebPartFailed to load component "544c1372-7e5a-49ec-8db6-812f76c375f2" (pnpSearchBoxWebPart). Original error: Failed to load entry point from component "544c1372-7e5a-49ec-8db6-812f76c375f2" (pnpSearchBoxWebPart). Original error: Error loading https://relative-path.invalid/tslib as "tslib" from https://component-id.invalid/544c1372-7e5a-49ec-8db6-812f76c375f2_4.0.0 Unable to load script https://relative-path.invalid/tslib
2021/02/24 13:25:44.268errorSPComponentLoader.loadComponenAttempted to load component "544c1372-42df-47c3-94d6-017428cd2baf" (pnpSearchResultsWebPart) 3 times without success.
2021/02/24 13:25:44.280errorWebPartZone.LoadWebPartFailed to load component "544c1372-42df-47c3-94d6-017428cd2baf" (pnpSearchResultsWebPart). Original error: Failed to load entry point from component "544c1372-42df-47c3-94d6-017428cd2baf" (pnpSearchResultsWebPart). Original error: Error loading https://relative-path.invalid/tslib as "tslib" from https://component-id.invalid/544c1372-42df-47c3-94d6-017428cd2baf_4.0.0 Unable to load script https://relative-path.invalid/tslib
Expected behavior
Web parts should load without error
Screenshots
Working in Chrome and Edge Chromium:
Experience in Edge (legacy):
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: