node:path fails even with compat flag

No description
12 Replies
1nf
1nf2mo ago
Could anyone look at this please?
Ruxorly
Ruxorly2mo ago
how are you importing it?
1nf
1nf2mo ago
I'm using the sanitize-html package from npm on that route
Ruxorly
Ruxorly2mo ago
are you using import syntax or require?
1nf
1nf2mo ago
import
Ruxorly
Ruxorly2mo ago
could you send a screenshot of your import code?
1nf
1nf2mo ago
No description
Ruxorly
Ruxorly2mo ago
hmm if you don’t import it and call the endpoint does it error out? besides the fact sanitizehtml wouldn’t be defined
1nf
1nf2mo ago
I fixed it by using a different sanitzer
Martin Carlsson
Martin Carlsson2mo ago
@1nf I'm having the same problem. What sanitzer are you using?
1nf
1nf2mo ago
GitHub
GitHub - jill64/universal-sanitizer: 💎 Isomorphic html sanitizer by...
💎 Isomorphic html sanitizer by DOMPurify + sanitize-html - jill64/universal-sanitizer
Martin Carlsson
Martin Carlsson2mo ago
@1nf Thanks! That helped a lot!