Disable root files being copied into `/_nuxt` path

I'm getting this error:
Uncaught SyntaxError: The requested module '/_nuxt/components.json?import' does not provide an export named 'DatePicker' (at CustomersFilters.vue:12:10)
Uncaught SyntaxError: The requested module '/_nuxt/components.json?import' does not provide an export named 'DatePicker' (at CustomersFilters.vue:12:10)
CustomersFilters.vue:12 looks like this:
import { DatePicker } from '~/components';
import { DatePicker } from '~/components';
I have a shadcn-vue components.json file in the root directory and when I visit localhost:3000/_nuxt/components.json in the browser, I get the contents of the components.json file in the root folder. How do I disable this behaviour?
1 Reply
Gyen Abubakar
Gyen AbubakarOP3mo ago
Everything I import from ~/components yields this error because of this behaviour. And it is actually preventing the app from rendering.
Want results from more Discord servers?
Add your server