Skip to content

No "exports" main defined in… @rollup/plugin-alias/package.json #286

@EricWVGG

Description

@EricWVGG

Describe the bug

When running pn run link-watch I get the following message:

No "exports" main defined in /Users/wvgg/projects/my-sanity-plugin/node_modules/.pnpm/@sanity+pkg-utils@9.0.6_@types+babel__core@7.20.5_@types+node@24.10.0_typescript@5.9.3/node_modules/@rollup/plugin-alias/package.json

Similar error when installing via npm:

[error] No "exports" main defined in /Users/wvgg/projects/my-sanity-plugin/node_modules/@rollup/plugin-alias/package.json

To Reproduce

Steps to reproduce the behavior:

This is happening consistently with new installs, just following the normal directions.

  1. npx @sanity/plugin-kit@latest init sanity-plugin-testing-it-out
  2. cd sanity-plugin-testing-it-out
  3. npm run link-watch

Expected behavior

Should "just work"

Which versions of Sanity are you using?

@sanity/incompatible-plugin 1.0.5 (up to date)
@sanity/pkg-utils 9.0.6 (up to date)
@sanity/plugin-kit 4.0.20 (up to date)
@sanity/ui 3.1.11 (up to date)
sanity 4.14.2 (latest: 4.15.0)

What operating system are you using?

MacOS 26.2

Which versions of Node.js / npm are you running?

10.9.2
v22.17.0
(pnpm 10.13.1)

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