node:path fails even with compat flag

No description
12 Replies
1nf
1nfOP8mo ago
Could anyone look at this please?
Ruxorly
Ruxorly8mo ago
how are you importing it?
1nf
1nfOP8mo ago
I'm using the sanitize-html package from npm on that route
Ruxorly
Ruxorly8mo ago
are you using import syntax or require?
1nf
1nfOP8mo ago
import
Ruxorly
Ruxorly8mo ago
could you send a screenshot of your import code?
1nf
1nfOP8mo ago
No description
Ruxorly
Ruxorly8mo 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
1nfOP8mo ago
I fixed it by using a different sanitzer
Martin Carlsson
Martin Carlsson8mo ago
@1nf I'm having the same problem. What sanitzer are you using?
1nf
1nfOP8mo ago
GitHub
GitHub - jill64/universal-sanitizer: 💎 Isomorphic html sanitizer by...
💎 Isomorphic html sanitizer by DOMPurify + sanitize-html - jill64/universal-sanitizer
Martin Carlsson
Martin Carlsson8mo ago
@1nf Thanks! That helped a lot!
Want results from more Discord servers?
Add your server