cloudflare / cloudflare/realtimekit-ui-addons
Failed to resolve entry for package "@dytesdk/ui-kit-addons"
- Dominant language
- TypeScript
- Stars
- 3
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
I’m trying to split @dytesdk/ui-kit-addons into a separate chunk using Vite’s manualChunks:
``` js
rollupOptions: {
output: {
manualChunks: {
react: ['react', 'react-dom', 'react-router', 'react-router-dom'],
apollo: ['@apollo/client', 'graphql', 'apollo-client'],
'styled-components': ['styled-components'],
'dytesdk-react': ['@dytesdk/react-ui-kit', '@dytesdk/react-web-core'],
'dytesdk-ui-kit-addons': ['@dytesdk/ui-kit-addons'],
},
},
},
```
However, the build fails with the following error:
> [commonjs--resolver] Failed to resolve entry for package "@dytesdk/ui-kit-addons". The package may have incorrect main/module/exports specified in its package.json: Missing "." specifier in "@dytesdk/ui-kit-addons" package
It seems Vite expects the package to export an entry point (e.g., index.js) via the exports field in package.json.
Are there any plans to add a top-level "." export for the package so it can be imported directly?
Contributor guide
Research direction
Start by inspecting the package.json exports, main, and module fields for @dytesdk/ui-kit-addons, then reproduce the failure with the Vite manualChunks configuration shown in the issue. Done means the package has a top-level entry that Vite can resolve and the build completes successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vite
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100