Closed kinglouie closed 1 year ago
Thanks for this will look into and advise a fix for this.
So just tested on @latest and it works here @kinglouie you will need usecompose=true for it to take effect though.
But I would make sure you execute with @latest because this used to be a bug back in the day but was fixed months ago.
Thanks a lot! adding @latest fixed the issue.
I'm going to extend this thread, rather than create a new one as I think the issue is related
After having created a strapi directory I execute the example command line for dockerize with the only change being that of setting --packagemanager=npm (rather than yarn). The result is a cleared screen and the following being displayed
@strapi-community/dockerize v1.9.1 by Simen Daehlin Easy add docker support for a Strapi Project https://github.com/strapi-community/strapi-tool-dockerize
⠋ 🦄 Prepping some magic
✖ UNHANDLED ERROR
✖ ERROR → TypeError
ℹ REASON → Cannot read properties of undefined (reading 'toLowerCase')
ℹ ERROR STACK ↓
TypeError: Cannot read properties of undefined (reading 'toLowerCase')
at quickStart (/home/admin1/.npm/_npx/a642ee8303c0fc2f/node_modules/@strapi-community/dockerize/cli/quickstart.js:23:28)
at /home/admin1/.npm/_npx/a642ee8303c0fc2f/node_modules/@strapi-community/dockerize/index.js:35:48
at Object.
The message/error is not created if the parameter --projectname=
Think i need to add some error handling on this one then @rit001 :) I can see that it was in latest, but what I think it is, is if it's undefined when we create it it will throw that error. Even though the options has a default we can't toLowerCase that value. Will make up a minor fix for this.
:tada: This issue has been resolved in version 1.9.2 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
🐛 Bug Report
🤷♀️ What did you do
When running the example
npx @strapi-community/dockerize new --dbclient=mysql --dbhost=localhost --dbport=1234 --dbname=strapi --dbusername=strapi --dbpassword=strapi --projecttype=js --packagemanager=yarn --usecompose=false --env=both
I get the error belowWhen looking into the corresponding code it seems that the projectname is not defined but even if I provide a projectname by argument
--projectname=test
I get the same error.⛔️ Error log
🕵️♀️ Stack trace