Replies: 14 comments 3 replies
-
- import { AViews, BViews } from '~/views';
+ import AViews from '~/views/AViews.vue';
+ import BViews from '~/views/BViews.vue'; |
Beta Was this translation helpful? Give feedback.
-
I am also facing this problem. I have the same structure and idea to export components. Does exist any solutions? |
Beta Was this translation helpful? Give feedback.
-
Would be nice to have this fixed. It's really a good way to structure the project, when you don't want to expose every single file with it's full path. But only module with exposed components. |
Beta Was this translation helpful? Give feedback.
-
Also breaks the builds with
|
Beta Was this translation helpful? Give feedback.
-
any updates? |
Beta Was this translation helpful? Give feedback.
-
Any updates with that guys? |
Beta Was this translation helpful? Give feedback.
-
Hate to be that guy, but +1 |
Beta Was this translation helpful? Give feedback.
-
faced the same issue +1 |
Beta Was this translation helpful? Give feedback.
-
Same issue +1 |
Beta Was this translation helpful? Give feedback.
-
Getting same error - using vite 5.2.8 |
Beta Was this translation helpful? Give feedback.
-
I have faced the same issue. Vite version: 5.3.4 |
Beta Was this translation helpful? Give feedback.
-
I have the same issue and I'm confused by the warning |
Beta Was this translation helpful? Give feedback.
-
Facing same issue
|
Beta Was this translation helpful? Give feedback.
-
I had the same issue. I used the |
Beta Was this translation helpful? Give feedback.
-
I'm using vite v4.4.9, vue 3.3.4 and when I build, I get a message like
All views pages are written in dynamic import and are being used.
AViews -> AContainerComponent -> ParentComponent -> ChildComponent
And
BViews -> BContainerComponent -> ParentComponent -> ChildComponent
have a structure of.
``
I can't see the message when I remove the style from Parent component, and I can see the message when I use the style from Parent component.
In addition, if Parent and Child Component are re-declared and exported to component/index.ts, a message is printed, and if component/Child/Parent.vue is imported directly, the message is not printed.
Why does this happen?
It did not happen in vite v4.0.4.
📦src
┣ 📂components
┃ ┣ 📜Child.vue
┃ ┣ 📜Parent.vue
┃ ┗ 📜index.ts
┣ 📂containers
┃ ┣ 📜AContainer.vue
┃ ┣ 📜BContainer.vue
┃ ┗ 📜index.ts
┣ 📂router
┃ ┗ 📜index.ts
┣ 📂views
┃ ┣ 📜AViews.vue
┃ ┣ 📜BViews.vue
┃ ┗ 📜index.ts
┣ 📜App.vue
┗ 📜main.ts
This is my directory structure
Beta Was this translation helpful? Give feedback.
All reactions