No fallback to index.js when importing a directory using an alias #15858
Labels
p3-minor-bug
An edge case that only affects very specific usage (priority)
regression
The issue only appears after a new release
Describe the bug
Importing a directory using
import
won't fallback to the index.js file anymore.Get the following error:
I created a very simple repo for an easy reproduction.
I noticed that the issue started at version 5.1.0, more specifically with version 5.1.0-beta.4.
Reproduction
https://github.com/charlesmass2/vite-index-fallback-fail
Steps to reproduce
Run
npm install
followed bynpm run dev
System Info
This is also reproduced in Alpine docker container.
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: