#Bug Report – Need Help

1 messages · Page 1 of 1 (latest)

bronze nimbus
#

Bug Report – Need Help

Hi team, I need help with an issue:

On the preview version, my site works perfectly.

But on the paid version (50 tokens plan), it is not working correctly.

I need assistance to adjust this. Here are my details:

User ID: EMT-b1c1c8

Project Name: foodcostpro 1

Site link: https://foodcostpro-1.emergent.host/dashboard

Please let me know how I can fix this. I would really appreciate your help as soon as possible.

Thanks in advance!

bronze nimbus
#

Aqui

lost pawn
#

@bronze nimbus Please provide the Job ID and screenshots of what is not working. I just clicked the link above and it looks to be functional.

long horizonBOT
#

Hi,

I've investigated your issue and found that both your preview and deployed versions have the same error.

The Issue

Your application is showing this JavaScript error:

ERROR: Smartphone is not defined  
ReferenceError: Smartphone is not defined at Dashboard

This error occurs in your Dashboard component where you're trying to use something called Smartphone but it hasn't been properly defined or imported

The issue isn't specific to your deployed version - it's affecting both preview and deployment because the same broken code was deployed. When code has errors in preview, those same errors will appear in the deployed version.

How to Fix This

Step 1: Fix in Preview First

  1. Open your project in Emergent
  2. Ask the agent to fix this error with a prompt like:
    "I'm getting this error: 'Smartphone is not defined' in my Dashboard component. Please find where 'Smartphone' is being used and either define it properly or remove/replace it with the correct component or variable."
  3. Test your preview - make sure the error is completely resolved and your dashboard works properly

Step 2: Redeploy After Fix

Once your preview is working perfectly:

  1. Click Deploy to update your live version
  2. Wait for deployment to complete (usually 15 minutes)
  3. Test your deployed site - the error should be gone

Regards

bronze nimbus
#

Hello,

I was able to complete the sale successfully in the Preview version — the receipt prints correctly, the payment flow works, and the total/amount counter is updating as expected (see screenshots).

However, in the deployed/live version, this behavior is not working. The same flow that works fine in Preview does not function properly after deployment.

Could you please check why the live version is not matching the Preview behavior?

Thank you.

#

@lost pawn Hello,

I really need your help. I’m from Brazil, and because of the exchange rate, I’ve already ended up spending five times more in BRL than the actual cost in USD. This has become very expensive for me, and I honestly don’t know what else to do.

I’ve tried multiple times, but the problems are still happening. In Preview everything works fine (sale completion, printing, value counter), but in the deployed/live version it does not work.

I’m feeling very frustrated because I’ve already invested a lot of money and time without finding a solution.

Please, I need urgent support to get this fixed.

Thank you.

bronze nimbus
#

Hello,

I’m getting the following error in my project:

Uncaught runtime errors:
×
ERROR
Smartphone is not defined
ReferenceError: Smartphone is not defined
at Dashboard (https://foodcostpro-1.preview.emergentagent.com/static/js/bundle.js:1222:102)
at renderWithHooks (https://foodcostpro-1.preview.emergentagent.com/static/js/bundle.js:37763:22)
at updateFunctionComponent (https://foodcostpro-1.preview.emergentagent.com/static/js/bundle.js:41330:24)
at beginWork (https://foodcostpro-1.preview.emergentagent.com/static/js/bundle.js:43049:20)
...

From what I understand, this error means that the application is trying to use something called Smartphone inside the Dashboard component, but it hasn’t been defined or imported anywhere.

In the Preview version, I’m still able to complete the sale and the value counter works, but in the deployed/live version this error is preventing it from working properly.

Could you please check and fix this issue?

Thank you.