feat: Fix TypeScript errors and implement Docker Compose V2 deployment
- Fix TypeScript errors in enhanced-screenshot.ts and tradingview-automation.ts - Add proper type assertions for page.screenshot() path parameter - Ensure compatibility with strict TypeScript compilation - Verify Docker Compose V2 deployment working on port 9000 - Application successfully containerized and production-ready - All build processes pass without TypeScript errors Ready for easy deployment on any machine with Docker & Docker Compose V2
This commit is contained in:
@@ -2488,7 +2488,7 @@ export class TradingViewAutomation {
|
||||
// Fallback to full page screenshot
|
||||
console.log("⚠️ Chart area not found, taking full page screenshot")
|
||||
await this.page.screenshot({
|
||||
path: filePath,
|
||||
path: filePath as `${string}.png`,
|
||||
fullPage: true,
|
||||
type: 'png'
|
||||
})
|
||||
@@ -2517,7 +2517,7 @@ export class TradingViewAutomation {
|
||||
await fs.mkdir(path.dirname(filePath), { recursive: true })
|
||||
|
||||
await this.page.screenshot({
|
||||
path: filePath,
|
||||
path: filePath as `${string}.png`,
|
||||
fullPage: true,
|
||||
type: 'png'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user