TypeError on endpoints with fresh react project
Hi!
This is likely user error, I'm not too experienced with NodeJS.
I get this error when trying to access a dynamic endpoint. Interestingly, this doesn't happen on a fresh project with only manifest. So yeah, probably my fault. ๐
Minimum reproduction:
added to backend.yml:
manifest/handlers/test.js:
node/npm:
2 Replies
Hello @Ergo thank you so much for reporting that issue
I could reproduce it on Windows + Node 24 and created a patch that fixes this issue. Indeed the
path-to-regexp
package is not present on that configuration so I had to import it specifically.
You can just set the manifest
version to 4.12.3
by typing npm i manifest@latest
and it should work now !
https://github.com/mnfst/manifest/releases/tag/manifest%404.12.3GitHub
Release manifest@4.12.3 ยท mnfst/manifest
Patch Changes
c74b428: fixed path error on windows with handler files, thanks @akvgergo
So it was a bug ๐ good to know it wasn't just me
Thank you for the quick fix ๐