-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
injectTapEventPlugin() Called Twice in My Application #162
Comments
I have the same problem. My workaround was to duplicate export * from 'admin-on-rest/lib/mui/button';
export * from 'admin-on-rest/lib/mui/detail';
export * from 'admin-on-rest/lib/mui/field';
export * from 'admin-on-rest/lib/mui/input';
// export * from 'admin-on-rest/lib/mui/layout';
export * from 'admin-on-rest/lib/mui/list';
export Delete from 'admin-on-rest/lib/mui/delete/Delete'; Edit: I'm not using admin-on-rest Layout |
I suppose you're using React v15.4.0. It recently introduced a regression, and we can't upgrade yet (see #155 for an explanation). So I suggest you use react v15.3.2 instead. |
Apparently tried both solutions but it seems way too complex to make it work in the Meteor application, but removing the function call entirely from the application and let the Layout do the same job for our local MaterialUI seems to work now. Closing this for now, hopefully the newer updates in the near future will solve the problem. |
I understand that we can use
admin-on-rest
on any application not just as a standalone app, but it seems like the injectTapEventPlugin() is causing my Meteor pages not loading with this error because my Meteor application is using MaterialUI as well. I have tried patching both Admin.js and Layout.js to remove the injectTapEventPlugin() call in Layout, but this doesn't work either.I suspect it's because it's already been called when the export statements are being called, because I'm still importing components from
admin-on-rest/lib/mui
which exportsLayout
as well. Opening this issue to see whether it's possible to have any workaround on this package first as we have tried different workarounds on our Meteor app itself but nothing seems to work, and the plugin error itself mentioned to contact package maintainer if this issue arises.The text was updated successfully, but these errors were encountered: