Skip to content

Package.json react-stately missing export subpath #9995

@Jimmy89

Description

@Jimmy89

Provide a general summary of the issue here

I just installed the latest verion of react-stately (3.46.0) with react-aria-components v1.17.0 and I get in my Nextjs compilation the clear error:

[Error: Package subpath './private/form/useFormValidationState' is not defined by "exports" in /var/task/node_modules/react-stately/package.json imported from /var/task/node_modules/react-aria-components/dist/exports/index.mjs] { 
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED' 

As I didn't get this error with previous packages I suspect this is a bug. Also I do not import this subpath directly, but react-aria-components does.

🤔 Expected Behavior?

No compilation error

😯 Current Behavior

Compilation error

💁 Possible Solution

No response

🔦 Context

No response

🖥️ Steps to Reproduce

Install the latest version of both packages and insert any react-aria-component within your project.

Version

react-stately v3.46.0 with react-aria-components v1.17.0

What browsers are you seeing the problem on?

Other

If other, please specify.

Nextjs/react compilation

What operating system are you using?

Fedora 43

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

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