Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

Problem

ai-tokenizer was in devDependencies but is imported at runtime in src/utils/main/tokenizer.ts. This caused "Cannot find module 'ai-tokenizer'" errors in production Electron builds since devDependencies are excluded from the packaged app.

Solution

Moved ai-tokenizer from devDependencies to dependencies in package.json.

Generated with cmux

ai-tokenizer was in devDependencies but is imported at runtime in
src/utils/main/tokenizer.ts. This caused "Cannot find module 'ai-tokenizer'"
errors in production Electron builds since devDependencies are excluded
from the packaged app.

_Generated with `cmux`_
@ammario ammario merged commit fae9390 into main Oct 13, 2025
7 checks passed
@ammario ammario deleted the electron-bug branch October 13, 2025 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants