-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Fix error building FieldTypes on Linux #3793
base: master
Are you sure you want to change the base?
Conversation
Would it be worth instead using the https://github.com/keystonejs/keystone-utils/blob/master/lib/index.js#L636 |
As far as I can tell, only the first letter needs to be uppercased, but you surely know the app better than I do. |
Haha, don't be too sure of that. You're probably right. |
We have to end up with camel-cased file names right, e.g. "CloudinaryImage", so I guess it depends what the input is. I'm sure your way works fine, but I think using the utils function should too. I guess it doesn't really matter that much anyway though, so maybe just leave it. |
Cool then :) |
We should actually be using the |
Let me know how to update the PR to have it landed. |
Does |
I don't think My {
boolean: 'Boolean',
number: 'Number',
text: 'Text',
select: 'Select',
file: 'File',
color: 'Color',
grid: 'Grid',
datetime: 'Datetime',
relationship: 'Relationship',
textarea: 'Textarea',
name: 'Name',
email: 'Email',
password: 'Password'
} Grid is a Custom-Fieldtype, so it can be ignored. Edit: My errors look like Keystone tries loading from Edit 2: |
Description of changes
Set the first letter of the field to uppercase
Related issues (if any)
Fixes #3754
Testing
npm run test-all
ran successfully.