You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 2, 2018. It is now read-only.
If you import a directory (implying the existence of an index.{ext} file, e.g. index.css) that does not contain an index file:
// index.css
@import"./info-view";
body {
width:703px;
margin:0 auto;
}
You get the following error:
using : babel
using : myth
building : lib/index.css
using : compatibility
using : stoj
installed : [email protected]
error : Error: EISDIR, read
at Error (native)
installed : [email protected]
I've only tried this with CSS, but I'm assuming it also happens for JavaScript files? Not sure. Would be nice to have a more descriptive error; perhaps when, as in this case, an import implies the presence of an index.{ext} file, the resolver should stat the file and throw an error if it doesn't exist?
The text was updated successfully, but these errors were encountered:
Given the following directory structure:
If you import a directory (implying the existence of an
index.{ext}
file, e.g.index.css
) that does not contain an index file:You get the following error:
I've only tried this with CSS, but I'm assuming it also happens for JavaScript files? Not sure. Would be nice to have a more descriptive error; perhaps when, as in this case, an import implies the presence of an
index.{ext}
file, the resolver should stat the file and throw an error if it doesn't exist?The text was updated successfully, but these errors were encountered: