Check mycomponent.js vs mycomponent/index.js import resolution #8945
Labels
Comments
bep
added a commit
to bep/hugo
that referenced
this issue
Sep 1, 2021
…exists This is in line with how both Node and ESBuild's native import resolver does it. The ambiguous situations above were discovered trying to build AlpineJS v3. Note that the above was never an issue if you used `./foo.js` and similar to import the component. Fixes gohugoio#8945
bep
added a commit
that referenced
this issue
Sep 1, 2021
…exists This is in line with how both Node and ESBuild's native import resolver does it. The ambiguous situations above were discovered trying to build AlpineJS v3. Note that the above was never an issue if you used `./foo.js` and similar to import the component. Fixes #8945
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm having some gray hairs building AlpineJS v3 mounted inside /assets. Now I see that the failing component matches the naming above, so I suspect that's it. That is a very rare naming conflict, I would say, but I'm guessing ES has a defined import order.
The text was updated successfully, but these errors were encountered: