79572570

Date: 2025-04-14 07:34:28
Score: 2
Natty:
Report link

I followed your instructions and didn’t get the same error, but I understand what you meant.

Feel free to tell me if I did something diffent.

  1. Cloned the Vite.js in TypeScript example repo from gitHub
  2. Copied dashboard and shared-theme folders from gitHub and pasted them into the src folder

Here is solution

  1. Removed all .js files from the dashboard and shared-theme folders.
  2. Imported Dashboard into main.tsx
import App from "./dashboard/Dashboard";

And it worked! So you need to remove all .js files.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Has code block (-0.5):
  • Me too answer (2.5): get the same error
  • Low reputation (1):
Posted by: Emily.C