We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug After build and successfully start app from TS example I've found a warning in the console. Warning => require is not defined.
The warning comes from method called setOcUserAgent
const setOcUserAgent = chatSDK => { var _chatSDK$OCClient, _chatSDK$OCClient2; // eslint-disable-line @typescript-eslint/no-explicit-any if ((_chatSDK$OCClient = chatSDK.OCClient) !== null && _chatSDK$OCClient !== void 0 && _chatSDK$OCClient.ocUserAgent && !((_chatSDK$OCClient2 = chatSDK.OCClient) !== null && _chatSDK$OCClient2 !== void 0 && _chatSDK$OCClient2.ocUserAgent.join(" ").includes("omnichannel-chat-widget/"))) { try { const version = require("../../../package.json").version; // eslint-disable-line @typescript-eslint/no-var-requires const userAgent = `omnichannel-chat-widget/${version}`; chatSDK.OCClient.ocUserAgent = [userAgent, ...chatSDK.OCClient.ocUserAgent]; } catch (error) { console.warn(error); } } };
Screenshots
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
After build and successfully start app from TS example I've found a warning in the console.
Warning => require is not defined.
The warning comes from method called setOcUserAgent
Screenshots
The text was updated successfully, but these errors were encountered: