Skip to content
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

Rich-Text-App Start "isValidImage" error #1393

Open
mlilly-ecri opened this issue Apr 12, 2023 · 2 comments
Open

Rich-Text-App Start "isValidImage" error #1393

mlilly-ecri opened this issue Apr 12, 2023 · 2 comments
Labels
stale Used to mark when there was no activity for a set period of time

Comments

@mlilly-ecri
Copy link

I am currently attempting to run the latest Contentful forked field editor monorepo. Upon following the instructions provided in the README.md I receive the following error message "./node_modules/@contentful/field-editor-reference/dist/field-editor-reference.esm.js
Attempted import error: 'isValidImage' is not exported from '@contentful/field-editor-shared'".

Any help resolving this issue is greatly appreciated.

@mlilly-ecri
Copy link
Author

mlilly-ecri commented Apr 12, 2023

In conjunction to my earlier reported issue, following both a yarn install and build the test data appeared to be outdated regarding the types found in the code.

Please see the following build errors:

@contentful/field-editor-test-utils:build: (typescript) Error: C:/Projects/custom-field-editors-master/custom-field-editors-master/packages/_test/src/createFakeFieldAPI.ts(21,19): semantic error TS2345: Argument of type '{ id: string; locale: string; type: string; validations: never[]; required: false; onValueChanged: (...args: [string, Function] | [Function]) => () => void; onIsDisabledChanged: (fn: Function) => () => void; ... 4 more ...; removeValue: () => Promise<...>; }' is not assignable to parameter of type 'FieldAPI'.
@contentful/field-editor-test-utils:build:   Type '{ id: string; locale: string; type: string; validations: never[]; required: false; onValueChanged: (...args: [string, Function] | [Function]) => () => void; onIsDisabledChanged: (fn: Function) => () => void; ... 4 more ...; removeValue: () => Promise<...>; }' is missing the following properties from type 'FieldAPI': getIsDisabled, getSchemaErrors

@github-actions
Copy link

Marking issue as stale since there was no activity for 30 days

@github-actions github-actions bot added the stale Used to mark when there was no activity for a set period of time label May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Used to mark when there was no activity for a set period of time
Projects
None yet
Development

No branches or pull requests

1 participant