{"record":{"id":"aa702ae596d66f1c","repo":"moeru-ai/airi","slug":"the-entrypoint-you-imported-for-name-doesn-t-ha","errorCode":null,"errorMessage":"The entrypoint you imported for ${name} doesn't have any exports. Try importing ${name}/pages instead.","messagePattern":"The entrypoint you imported for (.+?) doesn't have any exports\\. Try importing (.+?)/pages instead\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"info","filePath":"packages/stage-layouts/src/index.ts","lineNumber":3,"sourceCode":"import { name } from '../package.json'\n\nconsole.warn(`The entrypoint you imported for ${name} doesn't have any exports. Try importing ${name}/pages instead.`)\n","sourceCodeStart":1,"sourceCodeEnd":4,"githubUrl":"https://github.com/moeru-ai/airi/blob/677329427f32468c74b17f3ec47eeca4e05bec65/packages/stage-layouts/src/index.ts#L1-L4","documentation":"The root entrypoint of @proj-airi/stage-layouts deliberately exports nothing; importing it only executes this warning. The usable API (page/layout component registrations) lives under the /pages subpath export.","triggerScenarios":"Any `import ... from '@proj-airi/stage-layouts'` root specifier, typically left behind by auto-import tooling or copy-paste.","commonSituations":"IDE auto-complete picks the bare package name; refactor from a layout where the root used to re-export pages.","solutions":["Import from '@proj-airi/stage-layouts/pages' instead","Grep the workspace for bare '@proj-airi/stage-layouts' imports and fix each","Add a lint restriction on the root specifier to catch regressions"],"exampleFix":"// before\nimport { SettingsLayout } from '@proj-airi/stage-layouts'\n\n// after\nimport { SettingsLayout } from '@proj-airi/stage-layouts/pages'","handlingStrategy":"validation","validationCode":"// lint-level validation in eslint.config.js\n'import/no-restricted-imports': ['error', {\n  paths: [{ name: '@proj-airi/stage-layouts', message: 'import @proj-airi/stage-layouts/pages instead' }],\n}]","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Deep-import stage-layouts/pages always","Disabling auto-import for these packages avoids the root specifier","Treat the warning text in the console as a build smell, not runtime noise"],"tags":["import","package-entrypoint","stage-layouts"],"backgroundTag":"wrong-package-entrypoint","analyzedSha":"677329427f32468c74b17f3ec47eeca4e05bec65","analyzedAt":"2026-08-18T17:29:58.153Z","contentChangedAt":"2026-08-18T17:29:58.153Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}