Closed murnifine closed 1 year ago
I appreciate your effort in testing the provided code. However, I encountered difficulty reproducing the reported error based on the information provided.
One possible explanation for the issue could be that the code in question is missing the "default" export statement. To address this, please modify the code by marking it as a default export. For example, you can update it to export default function ....
If applying the suggested modification does not resolve the error for you, I recommend checking your dependencies for any outdated or incompatible versions. To ensure compatibility, please refer to the provided package.json file, as it represents a configuration where the code is functioning correctly.
{
"name": "shadcn-tests",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@radix-ui/react-collapsible": "^1.0.2",
"@radix-ui/react-slot": "^1.0.1",
"@types/node": "20.2.1",
"@types/react": "18.2.6",
"@types/react-dom": "18.2.4",
"autoprefixer": "10.4.14",
"class-variance-authority": "^0.6.0",
"clsx": "^1.2.1",
"eslint": "8.40.0",
"eslint-config-next": "13.4.3",
"lucide-react": "^0.220.0",
"next": "13.4.3",
"postcss": "8.4.23",
"react": "18.2.0",
"react-dom": "18.2.0",
"tailwind-merge": "^1.12.0",
"tailwindcss": "3.3.2",
"tailwindcss-animate": "^1.0.5",
"typescript": "5.0.4"
}
}
I thought it looks like the problem is solved, I just tried again after 3 days.
but I'm still confused why the error can appear
https://github.com/shadcn/ui/assets/133650344/2f4e18e5-3d36-43d3-a9a8-1045863ea5f7
i used the first example and got an Error message. but with the second example there is no Error
Error
No Error