diff --git a/cli/sync.ts b/cli/sync.ts index b19470ca1e..d770029c45 100644 --- a/cli/sync.ts +++ b/cli/sync.ts @@ -900,10 +900,14 @@ export async function pull(opts: GlobalOptions & SyncOptions) { ) ); - const resourceTypeToFormatExtension = - (await wmill.fileResourceTypeToFileExtMap({ + let resourceTypeToFormatExtension: Record = {}; + try { + resourceTypeToFormatExtension = (await wmill.fileResourceTypeToFileExtMap({ workspace: workspace.workspaceId, })) as Record; + } catch { + // ignore + } const remote = ZipFSElement( (await downloadZip( workspace, @@ -1195,10 +1199,14 @@ export async function push(opts: GlobalOptions & SyncOptions) { "Computing the files to update on the remote to match local (taking wmill.yaml includes/excludes into account)" ) ); - const resourceTypeToFormatExtension = - (await wmill.fileResourceTypeToFileExtMap({ + let resourceTypeToFormatExtension: Record = {}; + try { + resourceTypeToFormatExtension = (await wmill.fileResourceTypeToFileExtMap({ workspace: workspace.workspaceId, })) as Record; + } catch { + // ignore + } const remote = ZipFSElement( (await downloadZip( workspace,