-
-
Notifications
You must be signed in to change notification settings - Fork 502
Open
Description
Hi Blocksuite team,
I'm unable to use @blocksuite/global (and by extension, @blocksuite/store) in my Next.js project due to a packaging error. The published npm package contains only TypeScript source files in the src/ directory, but internal imports expect compiled .js files.
Error:
Module not found: Can't resolve './consts.js' in @blocksuite/global/src/di/index.ts
> 1 | export * from './consts.js';
| ^
Steps to reproduce:
- Install @blocksuite/global (and @blocksuite/store) via npm or pnpm.
- Attempt to import from @blocksuite/global in a Next.js/Node.js/React project.
- Observe build failure due to missing .js files.
What’s happening:
- The npm package only contains TypeScript files in src/
- Internal imports reference .js files (e.g., ./consts.js) that do not exist
- There is no compiled output directory (dist/ or lib/)
Expected behavior:
The package should ship compiled JavaScript files and reference those in all imports/exports.
Environment:
- @blocksuite/global version: 0.21.0
- @blocksuite/store version: 0.21.0
- Next.js version: 15.2.4
- Node: v22.14.0
- Package manager: pnpm
Additional info:
- This affects all consumers, not just Next.js.
- Workarounds like transpilePackages or aliasing do not resolve the missing file error.
Please publish a fixed version with compiled JS output and correct internal imports. Thank you!
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status