-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Transformers don't work #83
Comments
Hey @fhanggi , can you share with me a reproducible example? |
Ok I attached a zip file with a folder where you can reproduce this. i then see this error Error while trying to apply the following transformation "toUpperCaseNew". |
seems like you got some invalid values in your transformers: {...},
functions: {...},
parametersOptions: {...} |
Removing that faulty code seems to be resolving the issue for me and the custom transformer is applied as expected |
I removed everything except these lines but still get the same error module.exports = { i'm running node 12.13.1 and npm 6.14.8. Hope that is ok |
Should be ok, ill take a closer look later today |
Hello I am running 1.10.1. Installed in my global npm cache. Thank you. |
Hello, it's been a while. Could you please let me know if you found a solution for this issue? |
Hello
I put this into my scaffolder.config
module.exports = {
transformers: {
toUpperCaseNew: (parameterValue, context) => parameterValue.toUpperCase(),
},
functions: {
etc.
Then inside my scaffolder file i try to use toUpperCaseNew
export const {{tableName | toUpperCaseNew}} = (props) => {
When i run this
scaff create redux tableName=Fabian --folder MyCoolRedux
i get this error
Error while trying to apply the following transformation "toUpperCaseNew".
You are probably missing a definition for the "toUpperCaseNew" transformer in your scaffolder.config.js file
For more information about transformers check this out https://github.com/galElmalah/scaffolder#getting-started
I know i have toUpperCaseNew in my scaffolder.config.js file. I placed that file into the scaffolder folder.
It looks like it's not reading it or finding it.
Any tips would be appreciated.
Thank you
Fabian
The text was updated successfully, but these errors were encountered: