fix: add import assertion for JSON imports in ESM

Adds 'with { type: "json" }' to JSON imports to fix Node.js ESM runtime error:
ERR_IMPORT_ATTRIBUTE_MISSING
This commit is contained in:
Claude
2026-01-21 17:46:54 +00:00
parent 46ffaf027c
commit 8ef129bd3d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import type { AuthenticationState, SocketConfig, WAVersion } from '../Types'
import { Browsers } from '../Utils/browser-utils'
import logger from '../Utils/logger'
// Single source of truth for WhatsApp Web version - imported from JSON
import baileysVersionData from './baileys-version.json'
import baileysVersionData from './baileys-version.json' with { type: 'json' }
const version = baileysVersionData.version