Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.

Commit c1f68bf

Browse files
fix: template build errors (#9)
* chore: add missing dev dependency * chore: update logger method to a callable one --------- Co-authored-by: Justin Gauthier <justin@brightly.com>
1 parent 98a35e8 commit c1f68bf

File tree

3 files changed

+325
-14
lines changed

3 files changed

+325
-14
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"payload": "^2.0.14",
4444
"prettier": "^2.7.1",
4545
"react": "^18.0.0",
46-
"typescript": "^4.8.4"
46+
"typescript": "^4.8.4",
47+
"webpack": "^5.90.3"
4748
}
4849
}

src/onInitExtension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ export const onInitExtension = (pluginOptions: PluginTypes, payload: Payload): v
1111
// You can use the existing express app here to add middleware, routes, etc.
1212
// app.use(...)
1313
} catch (err: unknown) {
14-
payload.logger(err)
14+
payload.logger.error(err)
1515
}
1616
}

0 commit comments

Comments
 (0)