#Error: Build failed: Worker exited with code 13

1 messages · Page 1 of 1 (latest)

safe martenBOT
#

Hi @hollow glade. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Based on the information provided in your question and the knowledge sources available, I don't have enough specific information to definitively explain why you're encountering this particular build error with the "@lexical/html" package. However, I can offer some general troubleshooting advice based on similar issues in Trigger.dev:

  1. Check Node.js version: Ensure you're using a supported version of Node.js. According to the Common problems documentation, you should be using at least:

    • Node.js 18.20+
    • Node.js 20.5+
    • Node.js 21.0+
    • Node.js 22.0+
  2. Bundling issues: The error might be related to bundling. You could try adding "@lexical/html" to the external array in your trigger.config.ts file. This will exclude it from bundling:

    import { defineConfig } from "@trigger.dev/sdk/v3";
    
    export default defineConfig({
      project: "<project ref>",
      build: {
        external: ["@lexical/html"],
      },
    });
    
  3. Debug logging: If you haven't already, try running the dev command with debug logging enabled:

    npx trigger.dev@latest dev --log-level debug
    

    This might provide more detailed information about the error, as suggested in the Build extensions troubleshooting guide.

  4. Dry run: You could also try a dry run of the deploy command to see if it provides more information:

    npx trigger.dev@latest deploy --dry-run
    
  5. Check for compatibility: Ensure that the "@lexical/html" package is compatible with your current setup and other dependencies.

#

If these steps don't resolve the issue, I recommend reaching out to the Trigger.dev community for more specific help. As mentioned in the documentation, you can join their Discord server for assistance with specific issues like this.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:

#

@hollow glade Kapa.ai is still learning and improving, please let me know how I did by reacting below.