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

Error starting the sample project #11

Open
dngconsulting opened this issue Dec 30, 2020 · 1 comment
Open

Error starting the sample project #11

dngconsulting opened this issue Dec 30, 2020 · 1 comment

Comments

@dngconsulting
Copy link

When I start the sample project, from expo or not I get :

Editor.tsx: /Users/XXXXprojets/rich-text-editor/react-native-tinymce/Editor.tsx: The 'declare' modifier is only allowed when the 'allowDeclareFields' option of @babel/plugin-transform-flow-strip-types or @babel/preset-flow is enabled.
  45 | 
  46 | export default class Editor extends React.Component<EditorProps> {
> 47 | 	declare context: React.ContextType<typeof EditorContext>;
     | 	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  48 | 	static contextType = EditorContext;
  49 | 
  50 | 	static defaultProps: EditorProps = {

ABI36_0_0RCTFatal
__37-[ABI36_0_0RCTCxxBridge handleError:]_block_invoke
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_callback_4CF
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
-[UIApplication _run]
UIApplicationMain
main
start
@rveruna
Copy link

rveruna commented Aug 31, 2022

I fixed that by adding presents in my babel.config.js and adding "@babel/preset-typescript": "^7.18.6", to my package.json

module.exports = { presets: [ ['@babel/preset-typescript', { allowDeclareFields: true }], ], };

But this might be dependent on your environment. I never managed to get this package working anyway, managed to get react-native-pell-rich-editor work though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants