eXist-db / generator-exist

yeoman generator for exist app boilerplates
MIT License
12 stars 4 forks source link

[BUG] app not generated: punycode is deprecated. #1117

Closed ksbbf closed 10 months ago

ksbbf commented 10 months ago

Describe the bug

After the questionaire the generator ends with a DeprecationWarning. The app (or code) is not generated.

To Reproduce

I am on macos, installed node via brew, yeoman via node, and the generator via node (2024-01-16).

Logs, error messages

: the punycode Module is deprecated. Please use a userland alternative instead. Error @existdb/exist generator.run is not a function.

Context (please always complete the following information):

duncdrum commented 10 months ago

@ksbbf Thanks for the bug report. I will take a look. the error hints at a problem with the @exitdb/exist package. Are you sure that you are using node version 10?? That has been end of life for quite some time. Have you tried with a more recent (18 or 20) version of node?

ksbbf commented 10 months ago

Are you sure that you are using node version 10?? That has been end of life for quite some time. Have you tried with a more recent (18 or 20) version of node?

oh, sorry. you're right: node version: 21.5.0 npm version: 10.2.4

duncdrum commented 10 months ago

@ksbbf so far I can"t reproduce the error the generator is running fine. What is the output yo doctor on your system?

duncdrum commented 10 months ago

I see a problem with yo@5 in the meantime using yo@4 works fine. I ll have to dig into the incompatibility with yeoman v5. But that will take some time, as I have a rather full schedule atm.

ksbbf commented 10 months ago

@duncdrum Yes, that's a solution. I downgraded to yo@4 with

npm uninstall yo npm install -g yo@4

After the questionaire several files were downloaded. the result looks like an existapp. (But there were several warnings) I think, i can start from here. Thanks!

I believe we're done here.

duncdrum commented 10 months ago

the warnings are likely related to node v 21. these should go away soon, once I manage to do the upgrade to yo v 5. Thanks for the feedback