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
This is a minor issue and shouldn't be a blocker, but it would be nice to address, so it’s worth exploring.
After switching to Subpath Import Aliases, we are currently required to explicitly include the filename in all our imports, even when an index.js file is present. As a result, you may encounter imports like:
import slug from "#civicsignalblog/payload/fields/slug/index";
Instead of
import slug from "#civicsignalblog/payload/fields/slug";
It would be much better if we can find a clean and reusable way to automatically resolve index.js file from our import paths.
The text was updated successfully, but these errors were encountered:
m453h
added
the
chore
A task that needs to be done (neither enhancement or bug)
label
Oct 1, 2024
As described in PR #902
This is a minor issue and shouldn't be a blocker, but it would be nice to address, so it’s worth exploring.
After switching to Subpath Import Aliases, we are currently required to explicitly include the filename in all our imports, even when an
index.js
file is present. As a result, you may encounter imports like:Instead of
It would be much better if we can find a clean and reusable way to automatically resolve
index.js
file from our import paths.The text was updated successfully, but these errors were encountered: