diff --git a/libs/remix-ui/workspace/src/lib/actions/workspace.ts b/libs/remix-ui/workspace/src/lib/actions/workspace.ts index 1240b790c8..20b3ca8d02 100644 --- a/libs/remix-ui/workspace/src/lib/actions/workspace.ts +++ b/libs/remix-ui/workspace/src/lib/actions/workspace.ts @@ -152,7 +152,7 @@ export const loadWorkspacePreset = async (template: WorkspaceTemplate = 'remixDe default: try { // const templateWithContent = await import('../templates') - const templateWithContent = require('remix-ws-templates') + const templateWithContent = await import('remix-ws-templates') const templateList = Object.keys(templateWithContent) if (!templateList.includes(template)) break const files = templateWithContent[template]