Skip to content

fix: exclude @readied/* from ASAR to fix startup crash#233

Merged
tomymaritano merged 1 commit into
developfrom
fix/asar-exclude-workspace-packages
Apr 24, 2026
Merged

fix: exclude @readied/* from ASAR to fix startup crash#233
tomymaritano merged 1 commit into
developfrom
fix/asar-exclude-workspace-packages

Conversation

@tomymaritano

Copy link
Copy Markdown
Collaborator

Fixes ERR_PACKAGE_PATH_NOT_EXPORTED crash. Workspace packages already bundled by electron-vite.

electron-builder auto-includes workspace packages in node_modules
inside the ASAR even though electron-vite already bundles them.
The CJS require in Electron finds the unbundled node_modules copy
first, which fails with ERR_PACKAGE_PATH_NOT_EXPORTED because the
workspace packages point to .ts source files in their exports map.

Fix: add !node_modules/@readied/** to electron-builder files config
so only the bundled code in out/ is used at runtime.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Apr 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
readide Ready Ready Preview, Comment Apr 24, 2026 2:40pm

Request Review

@coderabbitai

coderabbitai Bot commented Apr 24, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@tomymaritano has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 17 minutes and 58 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 17 minutes and 58 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 69a2dbb3-5e8e-416d-8f1b-53c7cbc1e8b6

📥 Commits

Reviewing files that changed from the base of the PR and between d4ce973 and 872a457.

📒 Files selected for processing (1)
  • apps/desktop/package.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/asar-exclude-workspace-packages

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added dependencies Pull requests that update a dependency file app:desktop labels Apr 24, 2026
@github-actions github-actions Bot enabled auto-merge (squash) April 24, 2026 14:40
@tomymaritano tomymaritano merged commit bb88da2 into develop Apr 24, 2026
8 of 9 checks passed
@tomymaritano tomymaritano deleted the fix/asar-exclude-workspace-packages branch April 24, 2026 14:40
github-actions Bot pushed a commit that referenced this pull request Apr 24, 2026
## Release PR

Merges `develop` into `main` to trigger a new release via
semantic-release.

### Highlights since last release

- **feat: allow disabling built-in plugins** + MCP server FTS5 fix
(#237)
- **fix: move @readied/* to devDependencies** — ASAR startup crash
(#235)
- **fix: exclude @readied/* from ASAR** (#233)
- **feat: local HTTP API, quick capture, mermaid/math plugins** (#231)
- **fix: replace removed lucide brand icons** (#229)
- Multiple CI, type compat, and dependency fixes

### MCP server: sql.js → better-sqlite3
- FTS5 triggers now work (was crashing with `no such module: fts5`)
- WAL mode for safe concurrent access with the desktop app
- Runtime FTS5 check at startup with descriptive error

### Plugin system fixes (from code review)
- Built-in plugins no longer briefly activate before enabled state loads
- IPC listener cleanup no longer nukes unrelated listeners

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

## Release Notes

* **New Features**
* Built-in plugins can now be toggled on/off in settings;
enabled/disabled states persist across sessions
* Improved markdown editor URL auto-linking for more reliable link
creation

* **Bug Fixes**
* Fixed URL auto-linking to correctly identify URLs when document
content changes

* **Tests**
  * Added comprehensive test suite for database trigger functionality

* **Chores**
  * Migrated database backend for improved performance and stability

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app:desktop dependencies Pull requests that update a dependency file size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant