ruflo icon indicating copy to clipboard operation
ruflo copied to clipboard

Deno check src/cli/main.ts throws errors

Open ChrisPriebe opened this issue 1 year ago • 1 comments

When you run ./bin/claude-flow directly from source at commit 93fb608e591662673a081895c2056607579e0e93 (v.1.0.70) it will attempt to run the program with deno and if fails move to tsx.

It fails however as deno check src/cli/main.ts

Check file:///Users/---/projects/claude-code-flow-1/src/cli/main.ts
TS2307 [ERROR]: Cannot find module 'file:///Users/---/projects/claude-code-flow-1/src/cli/cli-core.js'. Maybe change the extension to '.ts' or run with --unstable-sloppy-imports
    at file:///Users/---/projects/claude-code-flow-1/src/cli/main.ts:6:30

TS2307 [ERROR]: Cannot find module 'file:///Users/---/projects/claude-code-flow-1/src/cli/commands/index.js'. Maybe change the extension to '.ts' or run with --unstable-sloppy-imports
    at file:///Users/---/projects/claude-code-flow-1/src/cli/main.ts:7:31

Found 2 errors.

ChrisPriebe avatar Jun 18 '25 22:06 ChrisPriebe

🎉 Thank You for the TypeScript Error Report!

🚀 Deno Check Issues Resolved in v2.0.0!

Your report about Deno check throwing errors was very helpful! We've completely migrated to Node.js and TypeScript in Claude Flow v2.0.0, eliminating all Deno-related issues.

✅ What's Been Fixed:

  • Complete Node.js Migration - Eliminated all Deno dependencies and compatibility issues
  • Proper TypeScript Integration - Full TypeScript support with proper type definitions
  • Clean Build Process - No more Deno check errors or compatibility issues
  • Modern Development - Standard Node.js and TypeScript development workflow

🌊 Invitation to Claude Flow v2.0.0:

We'd love to have you try the new claude-flow-v2.0.0 branch! Your TypeScript expertise would be valuable in reviewing our type definitions.

Try the improved TypeScript integration:

# No more Deno check errors\!
npm run type-check
npm run build

# Explore the TypeScript definitions
npx [email protected] --version

🎯 TypeScript Improvements:

  • Proper Type Definitions - Comprehensive TypeScript definitions throughout
  • Agent Type System - Strong typing for agent capabilities and coordination
  • Error Prevention - TypeScript helps prevent runtime errors
  • Better IDE Support - Full IntelliSense and type checking support

Thank you for helping us identify and fix the TypeScript integration issues! 🙏

Closing this issue as resolved in v2.0.0. Please open a new issue if you encounter any TypeScript problems with the new version.

ruvnet avatar Jul 05 '25 16:07 ruvnet