formbricks/formbricks

Formbricks - Uncaught TypeError: Cannot read properties of undefined (reading 'renderSurveyModal') at widget.ts:67:23

Opened this issue · 1 comments

Issue Summary

We have integrated, code in our index page of the project.

import formbricks from "@formbricks/js";

if (typeof window !== "undefined") {
formbricks.init({
environmentId: "xxxx",
apiHost: "yyyy",
});
}

Installed into form bricks module into the project - "@formbricks/js": "^1.6.5",

Steps to Reproduce

When I refresh the page, I'm getting the issue
Error-formbricks

Expected behavior

Expected to get fire the popup.

Other information

No response

Screenshots

No response

Environment

  • Formbricks Cloud (app.formbricks.com)
  • Self-hosted Formbricks

Desktop (please complete the following information)

- OS: Mac
- Node: v18.10.0
- npm: 9.8.1

Thank you for opening your first issue! 🙏❤️ One of our team members will review it and get back to you as soon as it possible. 😊