Skip to content

Commit

Permalink
fix identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
jantimon committed Jul 16, 2024
1 parent 9ecc099 commit c9023de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next-yak/loaders/lib/resolveCrossFileSelectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ async function resolveIdentifier(
resolved,
resolved.endsWith(".tsx"),
);
const exportForIdentifier = exports[identifier[0]];
const exportForIdentifier = exports[identifier];
if (!exportForIdentifier) {
throw new Error(`Could not find export ${identifier} in ${resolved}
Currently only named exports are supported.
Expand Down

0 comments on commit c9023de

Please sign in to comment.