Skip to content

Commit

Permalink
Fix watchFiles error with vite 5.3 (#1312)
Browse files Browse the repository at this point in the history
  • Loading branch information
SeppahBaws committed Jul 2, 2024
1 parent 564c063 commit e21f7c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lemon-zebras-collect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'houdini': patch
---

Fix "Cannot read properties of undefined (reading 'watchFiles')" error using vite 5.3
2 changes: 1 addition & 1 deletion packages/houdini/src/vite/houdini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export default function Plugin(opts: PluginConfig = {}): VitePlugin {
// bundle up the contextual stuff
const ctx: TransformPage = {
content: code,
watch_file: this.addWatchFile,
watch_file: this.addWatchFile.bind(this),
config: config,
filepath,
// @ts-ignore
Expand Down

0 comments on commit e21f7c6

Please sign in to comment.