We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0aee817 commit 1dfcd0aCopy full SHA for 1dfcd0a
1 file changed
packages/host/app/services/card-type-service.ts
@@ -11,6 +11,7 @@ import {
11
getAncestor,
12
SupportedMimeType,
13
isResolvedCodeRef,
14
+ cardIdToURL,
15
type ResolvedCodeRef,
16
} from '@cardstack/runtime-common';
17
import { isCodeRef, type CodeRef } from '@cardstack/runtime-common/code-ref';
@@ -121,7 +122,7 @@ export default class CardTypeService extends Service {
121
122
let moduleIdentifier = moduleFrom(ref);
123
let moduleInfo =
124
this.moduleInfoCache.get(moduleIdentifier) ??
- (await this.fetchModuleInfo(new URL(moduleIdentifier)));
125
+ (await this.fetchModuleInfo(cardIdToURL(moduleIdentifier)));
126
127
let api = await loader.import<typeof CardAPI>(`${baseRealm.url}card-api`);
128
let { id: _remove, ...fields } = api.getFields(card, {
0 commit comments