Fork me on GitHub
#shadow-cljs
<
2024-04-28
>
Tomáš Baránek11:04:04

Hi, @thheller, I am constantly getting this error when trying to deploy to firebase web app – and I cannot get rid of it: DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created) (node:81938) [DEP0044] DeprecationWarning: The util.isArray API is deprecated. Please use Array.isArray() instead. It seems like it is connected with a deprecated dependency in node / or shadow-cljs? I am really sorry about asking stupid question but I really spent hours on trying to avoid the problem and let my app get deployed. Thanks!

thheller13:04:14

sorry I don't really have an answer. this is not something in shadow-cljs. this is a node runtime warning, so some code you or your dependencies use end up with that warning

thheller13:04:33

did you try node --trace-deprecation?

Tomáš Baránek08:05:57

Yes, I did, but with confusing results for me:). Finally I found that after downgrading to node 9.5.1 it all works at least for now. Thanks a lot!

thheller08:05:10

thats not really a fix is it? It probably just wasn't deprecated back then 😛 going back to something so ancient doesn't seem great.

1
Tomáš Baránek08:05:02

You are absolutely right. I am a beginner in this area and my understanding is low and slow. Could you suggest me a good source to learn from – how to understand and handle package dependencies?

thheller08:05:51

I can't really answer that generically. you could run something like npm list --depth=4 to find out which package is depending on punycode

thheller08:05:11

or given that this is all just a warning you can opt to ignore it 😛

thheller08:05:50

the likely cause is just that you have some super old dependency that maybe has a newer version available, or maybe a replacement

Tomáš Baránek10:05:06

I will try to narrow it down, I will do the best ... and then will bother you again with conclusion or additional stupid question, ok? BTW I created this simple app: https://nautilus-omnibus.web.app thanks to shadow-cljs. It is work in progress, refactoring needed etc. Thank you for your work, I really appreciate it. 🙏