formbricks icon indicating copy to clipboard operation
formbricks copied to clipboard

[BUG] Nextjs app router js/formbricks.umd.cjs not found

Open buraktabn opened this issue 1 year ago • 3 comments

Issue Summary

Can't initialize the Formbricks SDK on Nextjs App Routers but in configurations page I can see the status as Receiving data 💃🕺

Following the docs in here but I get these logs:

🧱 Formbricks - Warning: Formbricks is already initializing.
🧱 Formbricks - Warning: Formbricks is already initializing.
GET http://localhost:3001/<env-id>/js/formbricks.umd.cjs net::ERR_ABORTED 404 (Not Found)

This happens on both local and production. I use Cloudflare and Vercel for production.

Steps to Reproduce

  1. Copy paste the instructions on here
  2. Updated variables for the env id and host

Expected behavior

Should not see any error and show the survey

Other information

First time trying to use Formbriks

Screenshots

No response

Environment

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

Desktop (please complete the following information)

- OS: MacOS
- Browser: Chrome
- Node: 20.11.0
- yarn: 1.22.22

buraktabn avatar Oct 20 '24 20:10 buraktabn

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. 😊

github-actions[bot] avatar Oct 20 '24 20:10 github-actions[bot]

/assign

I03Ishika avatar Oct 21 '24 06:10 I03Ishika

This issue is not part of oss.gg hackathon. Please pick a different one or start with a side quest

oss-gg[bot] avatar Oct 21 '24 06:10 oss-gg[bot]

I did some debugging and found it was a typo from my end on the API HOST. :(

buraktabn avatar Oct 21 '24 16:10 buraktabn