Closed kireerik closed 5 months ago
Hi there it would help if you posted a minimal reproduction case. This would include: source files, package.json contents, and the command-line arguments used to invoke nodejs.
Sure. You can use this one: https://github.com/kireerik/refo (This one uses Superstatic directly and has the same error.)
pnpm dev
Ah ok sorry I fixed this a long time ago in our local repository but never pushed it out here, so I was confused. Can you try v1.2.0 and see if it works?
With version 1.2.0
I am getting the following error (even with Node.js
version 21.x
):
file:///../refo/source/firebase.json.js:79
import.meta.hot.prune(remove('firebase.json'))
^
TypeError: Cannot read properties of undefined (reading 'prune')
at file:///../refo/source/firebase.json.js:79:18
at ModuleJob.run (node:internal/modules/esm/module_job:262:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:485:26)
at async file:///../refo/index/index.js:5:1 {
__stack: [ CallSite {}, CallSite {}, CallSite {}, CallSite {} ]
}
Node.js v22.4.0
ELIFECYCLE Command failed with exit code 1.
ELIFECYCLE Command failed with exit code 1.
```
No, it works as expected after updating the usage (https://github.com/kireerik/refo/commit/3ac49d34a6a1554a0fdb0394af9a559e89928e04). Thank you!
I am getting the following error with the above Node.js version:
Without using
dynohot
I don't get the above error(, but this other known one:https://github.com/firebase/firebase-tools/issues/7173
).
Using
Node.js
version21.x
there is no error at all and features work as expected.