moeru-ai/airi · info

The entrypoint you imported for ${name} doesn't have any exp

Error message

The entrypoint you imported for ${name} doesn't have any exports. Try importing ${name}/pages instead.

What it means

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.

Source

Thrown at packages/stage-layouts/src/index.ts:3

import { name } from '../package.json'

console.warn(`The entrypoint you imported for ${name} doesn't have any exports. Try importing ${name}/pages instead.`)

View on GitHub (pinned to 677329427f)

Solutions

  1. Import from '@proj-airi/stage-layouts/pages' instead
  2. Grep the workspace for bare '@proj-airi/stage-layouts' imports and fix each
  3. Add a lint restriction on the root specifier to catch regressions

Example fix

// before
import { SettingsLayout } from '@proj-airi/stage-layouts'

// after
import { SettingsLayout } from '@proj-airi/stage-layouts/pages'
Defensive patterns

Strategy: validation

Validate before calling

// lint-level validation in eslint.config.js
'import/no-restricted-imports': ['error', {
  paths: [{ name: '@proj-airi/stage-layouts', message: 'import @proj-airi/stage-layouts/pages instead' }],
}]

Prevention

When it happens

Trigger: Any `import ... from '@proj-airi/stage-layouts'` root specifier, typically left behind by auto-import tooling or copy-paste.

Common situations: IDE auto-complete picks the bare package name; refactor from a layout where the root used to re-export pages.

Related errors


AI-assisted analysis of moeru-ai/airi@677329427f (2026-08-18). Data as JSON: /api/errors/aa702ae596d66f1c. Report an issue: GitHub.