Skip to content

Bug: manifest.json ships with "main": "src/main.ts" but build outputs src/main.js #146

Description

@jonathanrobie

Bug

The template's manifest.json contains:

"main": "src/main.ts"

But the webpack build outputs dist/src/main.js. Platform.Bible loads the extension from the dist/ folder, so the correct value is:

"main": "src/main.js"

Impact

Every extension created from this template will silently fail to activate. The extension host does not log a clear "entry point not found" error — the extension simply never loads, producing a blank panel with no UI and no obvious error message in the logs.

Fix

Change manifest.json:

-  "main": "src/main.ts",
+  "main": "src/main.js",

Context

Discovered while debugging paratext-copilot, which was derived from this template.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions