{"record":{"id":"67921c4878ea96e3","repo":"emotion-js/emotion","slug":"there-is-no-transformer-for-the-export-exportna","errorCode":null,"errorMessage":"There is no transformer for the export '${exportName}' in '${packageName}'","messagePattern":"There is no transformer for the export '(.+?)' in '(.+?)'","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/babel-plugin/src/index.js","lineNumber":190,"sourceCode":"        state.jsxReactImport = jsxReactImports[0]\n        Object.keys(state.opts.importMap || {}).forEach(importSource => {\n          let value = state.opts.importMap[importSource]\n          let transformers = {}\n          Object.keys(value).forEach(localExportName => {\n            let { canonicalImport, ...options } = value[localExportName]\n            let [packageName, exportName] = canonicalImport\n            if (packageName === '@emotion/react' && exportName === 'jsx') {\n              jsxReactImports.push({\n                importSource,\n                export: localExportName,\n                cssExport: getCssExport('jsx', importSource, value)\n              })\n              return\n            }\n            let packageTransformers = transformersSource[packageName]\n\n            if (packageTransformers === undefined) {\n              throw new Error(\n                `There is no transformer for the export '${exportName}' in '${packageName}'`\n              )\n            }\n\n            let extraOptions\n\n            if (packageName === '@emotion/react' && exportName === 'Global') {\n              // this option is not supposed to be set in importMap\n              extraOptions = {\n                cssExport: getCssExport('Global', importSource, value)\n              }\n            } else if (\n              packageName === '@emotion/styled' &&\n              exportName === 'default'\n            ) {\n              // this is supposed to override defaultOptions value\n              // and let correct value to be set if coming in options\n              extraOptions = {","sourceCodeStart":172,"sourceCodeEnd":208,"githubUrl":"https://github.com/emotion-js/emotion/blob/b882bcba85132554992e4bd49e94c95939bbf810/packages/babel-plugin/src/index.js#L172-L208","documentation":"@emotion/babel-plugin only knows how to transform exports registered for known packages (like @emotion/react's jsx, css, etc.). When it encounters an import of an export from a package that has no registered transformer, it throws rather than silently mis-transforming styled code.","triggerScenarios":"Importing an export (e.g. `import { thing } from '@emotion/react'` where `thing` isn't a supported export) that gets passed through the plugin's mapping logic and has no transformer registered in transformersSource.","commonSituations":"Importing nonexistent or non-emotion exports from emotion packages, mistyping an export name, or using an importMap pointing at packages the plugin doesn't handle.","solutions":["Fix the import to a supported export (jsx, css, keyframes, Global, etc. from @emotion/react)","Check spelling of the imported export name","If importing a custom module, verify your importMap maps that export to a canonical @emotion/react export","If the import isn't emotion-related, adjust plugin config (importMap) so it isn't treated as an emotion export"],"exampleFix":"// before\nimport { Css } from '@emotion/react'\n// after\nimport { css } from '@emotion/react'","handlingStrategy":"validation","validationCode":"const SUPPORTED = new Set(['jsx', 'css', 'keyframes', 'Global', 'ClassNames', 'withEmotionCache', 'useTheme', 'createElement']);\nconst name = 'Css';\nif (!SUPPORTED.has(name)) throw new Error(`Unknown emotion export: ${name}`);","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Verify import names against @emotion/react's public API before using them","Let TypeScript catch bad named imports at compile time","Don't extend emotion packages with custom re-exports unless mapped via importMap"],"tags":["babel","emotion","transform","imports"],"backgroundTag":"unknown-export-transform","analyzedSha":"b882bcba85132554992e4bd49e94c95939bbf810","analyzedAt":"2026-09-02T22:27:13.739Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-10T02:17:09.455Z"}