Open nasheomirro opened 3 months ago
It would be great to fix it ASAP :)
Okay, it's quite easy to update the JS project with TS changes. https://docs.strapi.io/dev-docs/typescript#add-typescript-support-to-an-existing-strapi-project
Now everything works like a charm
I think the problem is on the validation of the config value,
strapi.dirs.dist.root
in javascript projects will be the same asstrapi.dirs.app.root
since javascript-based projects do not have a '/dist' folder, or at least that's what I'm assuming because no matter what valid value I'd give todestinationFolder
, it will always give me this error:modifying the src code a bit to log
strapi.dirs
insidedist/register.js
and we get this:My current solution right now is to alter the value of
strapi.dirs.dist.root
inside the src code by adding a'//dist'
string at the end.