Module resolution fails when there is a file and directory with same name #927
Replies: 2 comments 5 replies
-
Short term fix: is to do Long term: Unfortunately, I think this may be expected behavior for us. The way our resolution algo works, is that we look for |
Beta Was this translation helpful? Give feedback.
-
Update: this should be fixed in Snowpack v3.0 |
Beta Was this translation helpful? Give feedback.
-
In my TypeScript project I have the following structure:
I import DashboardItem like so:
import DashboardItem from '~/Components/DashboardItem';
In this scenario, Snowpack generates the following import:
import DashboardItem from '../../../Components/DashboardItem/index.js';
It's inserting index.js in front which is incorrect. Any idea how I can get around this problem?
Beta Was this translation helpful? Give feedback.
All reactions