Skip to content

Subpath files are not exported from packages anymore #18743

@g0shed

Description

@g0shed

Bug report

After upgrading to the latest version of strapi I get the following error ehn trying to build

$ strapi build
✔ Compiling TS (1307.0721920728683ms)
⠋ Building build context
[INFO] Including the following ENV variables as part of the JS bundle:
    - ADMIN_PATH
    - STRAPI_ADMIN_BACKEND_URL
    - STRAPI_TELEMETRY_DISABLED
✔ Building build context (111.18539905548096ms)
⠋ Building admin panel
⠼ Building admin panel[ERROR] Module not found: Error: Package path ./admin/src/content-manager/utils is not exported from package <path>/node_modules/@strapi/admin (see exports field in <path>/node_modules/@strapi/admin/package.json)

Required System information

  • Node.js version: 18.18.2
  • NPM version: 9.8.1
  • Strapi version: 4.15.2
  • Database: mysql
  • Operating system: Linux
  • Is your project Javascript or Typescript: TypeScript

Expected behavior

Should be able to run stripe after upgrade

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions