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
- Open your project in Emergent
- 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."
- 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:
- Click Deploy to update your live version
- Wait for deployment to complete (usually 15 minutes)
- Test your deployed site - the error should be gone
Regards