If you install a browser that is not yet supported (e.g. doesn't have emulation data available or w/e):
yarn add @ulixee/chrome-107-0
And then start your hero instance you are greeted with an error message such as:
TypeError: Cannot destructure property 'string' of 'this.emulationProfile.userAgentOption' as it is undefined.
at Session.get meta [as meta] (/app/brorun/node_modules/core/lib/Session.ts:123:15)
at Session.recordSession (/app/brorun/node_modules/core/lib/Session.ts:789:32)
at new Session (/app/brorun/node_modules/core/lib/Session.ts:248:10)
at Function.create (/app/brorun/node_modules/core/lib/Session.ts:874:17)
at async ConnectionToHeroClient.createSession (/app/brorun/node_modules/core/connections/ConnectionToHeroClient.ts:187:30)
at async CommandRunner.runFn (/app/brorun/node_modules/core/lib/CommandRunner.ts:36:14)
at async ConnectionToHeroClient.executeCommand (/app/brorun/node_modules/core/connections/ConnectionToHeroClient.ts:249:12)
at async ConnectionToHeroClient.handleRequest (/app/brorun/node_modules/core/connections/ConnectionToHeroClient.ts:64:14)
Removing the unsupported browser versions resolves the issue.
If you install a browser that is not yet supported (e.g. doesn't have emulation data available or w/e):
And then start your hero instance you are greeted with an error message such as:
Removing the unsupported browser versions resolves the issue.