When installing @lexical/react, I get the following error:
ERROR Failed to resolve entry for package "@lexical/react". The package may have incorrect main/module/exports specified in its package.json: Missing "." specifier in "@lexical/react" package
I believe autoPreBundleDepsForSsrPlugin is trying to bundle specifically @lexical/react (and not a sub-export) within Vite, which doesn't specify a top-level barrel file for its exports, and is failing.
To replicate:
- Create a new One project
- Install
@lexical/react
- Run the
dev command
When installing
@lexical/react, I get the following error:I believe
autoPreBundleDepsForSsrPluginis trying to bundle specifically@lexical/react(and not a sub-export) within Vite, which doesn't specify a top-level barrel file for its exports, and is failing.To replicate:
@lexical/reactdevcommand