{"record":{"id":"00572bf3aaf70e7c","repo":"Foundry376/Mailspring","slug":"cannot-load-filepath-mailspring-no-longer-ship","errorCode":null,"errorMessage":"Cannot load ${filePath}: Mailspring no longer ships with a TypeScript compiler. Plugins must be compiled to vanilla JavaScript as a pre-publish step.","messagePattern":"Cannot load (.+?): Mailspring no longer ships with a TypeScript compiler\\. Plugins must be compiled to vanilla JavaScript as a pre-publish step\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"app/src/compile-cache-ts-unsupported.js","lineNumber":29,"sourceCode":"  const dialog =\n    process.type === 'renderer'\n      ? require('@electron/remote').dialog\n      : require('electron').dialog;\n  dialog.showErrorBox(\n    'Plugin must be compiled',\n    `Mailspring no longer ships with a TypeScript compiler to recompile plugins on the fly. ` +\n      `Ask the plugin developer to compile the plugin to vanilla JavaScript as a pre-publish step.` +\n      `\\n\\nFile: ${filePath}`\n  );\n}\n\n['.ts', '.tsx', '.jsx', '.es6'].forEach(extension => {\n  Object.defineProperty(require.extensions, extension, {\n    enumerable: true,\n    writable: true,\n    value: (module, filePath) => {\n      showDialog(filePath);\n      throw new Error(\n        `Cannot load ${filePath}: Mailspring no longer ships with a TypeScript compiler. ` +\n          `Plugins must be compiled to vanilla JavaScript as a pre-publish step.`\n      );\n    },\n  });\n});\n","sourceCodeStart":11,"sourceCodeEnd":36,"githubUrl":"https://github.com/Foundry376/Mailspring/blob/648c685d602ece6bb00c22534b8734de6ac644b3/app/src/compile-cache-ts-unsupported.js#L11-L36","documentation":"Raised by the require.extensions shim installed in compile-cache-ts-unsupported when a plugin tries to require a .ts/.tsx/.jsx/.es6 file at runtime. It fires because Mailspring dropped its bundled just-in-time TypeScript compiler; plugin code must be pre-compiled to plain JavaScript before publishing.","triggerScenarios":"Thrown at app/src/compile-cache-ts-unsupported.js:29 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["As the plugin developer: add a build step (e.g. tsc or babel) and ship compiled .js in the plugin package","As the user: update the plugin to a version that ships compiled JavaScript, or disable it"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"648c685d602ece6bb00c22534b8734de6ac644b3","analyzedAt":"2026-09-03T02:00:24.311Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-10T07:17:11.731Z"}