Open Frazer opened 8 years ago
Hey Sorry this Repo is really outdated doc wise. I need to update them.
It looks like the repo has a requirement for an older version of react which needs to be updated/removed.
For now if you went to the lib
dir you could just copy the repo source code
Also it looks like you need to do npm install --save react-addons-transition-group
Oh, I found a work around from https://forums.meteor.com/t/fourseven-scss-meteor-1-4-error-cant-install-mac-ox/27129/2
mv .meteor/versions .meteor/old.versions
touch .meteor/versions
meteor reset
meteor update
then
meteor add fourseven:scss
then
meteor add patrickml:react-modal
It installed succesfully. Now I'll see if I can use it in my project 🎱
oh wait. it still crashes my app. So, that fix allows it to install, but I got this crash message
W20160809-11:44:32.859(2)? (STDERR) /Users/frazerkirkman/.meteor/packages/meteor-tool/.1.4.0-1.e8gar3++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280 W20160809-11:44:32.929(2)? (STDERR) throw(ex); W20160809-11:44:32.930(2)? (STDERR) ^ W20160809-11:44:32.931(2)? (STDERR) W20160809-11:44:32.931(2)? (STDERR) Error: Can't find npm module 'react-addons-css-transition-group'. Did you forget to call 'Npm.depends' in package.js within the 'modules-runtime' package? W20160809-11:44:32.931(2)? (STDERR) at Object.Npm.require (/Users/frazerkirkman/Code/Meteor/meme-trainer/.meteor/local/build/programs/server/boot.js:203:17) W20160809-11:44:32.932(2)? (STDERR) at options.fallback (packages/modules-runtime/modules-runtime.js:21:1) W20160809-11:44:32.933(2)? (STDERR) at Module.require (packages/modules-runtime/.npm/package/node_modules/install/install.js:88:1) W20160809-11:44:32.933(2)? (STDERR) at Module.Mp.import (/Users/frazerkirkman/.meteor/packages/modules/.0.7.5.16wlehk++os+web.browser+web.cordova/npm/node_modules/reify/lib/runtime.js:70:16) W20160809-11:44:32.933(2)? (STDERR) at meteorInstall.node_modules.meteor.patrickml:react-modal.lib.react-modal.jsx (/Users/frazerkirkman/Code/Meteor/meme-trainer/.meteor/local/build/programs/server/packages/patrickml_react-modal.js:86:252) W20160809-11:44:32.934(2)? (STDERR) at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:153:1) W20160809-11:44:32.934(2)? (STDERR) at Module.require (packages/modules-runtime/.npm/package/node_modules/install/install.js:82:1) W20160809-11:44:32.935(2)? (STDERR) at Module.Mp.import (/Users/frazerkirkman/.meteor/packages/modules/.0.7.5.16wlehk++os+web.browser+web.cordova/npm/node_modules/reify/lib/runtime.js:70:16) W20160809-11:44:32.935(2)? (STDERR) at meteorInstall.node_modules.meteor.patrickml:react-modal.entry.js (packages/patrickml:react-modal/entry.js:1:1) W20160809-11:44:32.935(2)? (STDERR) at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:153:1) => Exited with code: 1 W20160809-11:44:39.637(2)? (STDERR) /Users/frazerkirkman/.meteor/packages/meteor-tool/.1.4.0-1.e8gar3++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280 W20160809-11:44:39.639(2)? (STDERR) throw(ex); W20160809-11:44:39.639(2)? (STDERR) ^ W20160809-11:44:39.640(2)? (STDERR) W20160809-11:44:39.640(2)? (STDERR) Error: Can't find npm module 'react-addons-css-transition-group'. Did you forget to call 'Npm.depends' in package.js within the 'modules-runtime' package? W20160809-11:44:39.640(2)? (STDERR) at Object.Npm.require (/Users/frazerkirkman/Code/Meteor/meme-trainer/.meteor/local/build/programs/server/boot.js:203:17) W20160809-11:44:39.640(2)? (STDERR) at options.fallback (packages/modules-runtime/modules-runtime.js:21:1) W20160809-11:44:39.640(2)? (STDERR) at Module.require (packages/modules-runtime/.npm/package/node_modules/install/install.js:88:1) W20160809-11:44:39.641(2)? (STDERR) at Module.Mp.import (/Users/frazerkirkman/.meteor/packages/modules/.0.7.5.16wlehk++os+web.browser+web.cordova/npm/node_modules/reify/lib/runtime.js:70:16) W20160809-11:44:39.641(2)? (STDERR) at meteorInstall.node_modules.meteor.patrickml:react-modal.lib.react-modal.jsx (/Users/frazerkirkman/Code/Meteor/meme-trainer/.meteor/local/build/programs/server/packages/patrickml_react-modal.js:86:252) W20160809-11:44:39.642(2)? (STDERR) at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:153:1) W20160809-11:44:39.642(2)? (STDERR) at Module.require (packages/modules-runtime/.npm/package/node_modules/install/install.js:82:1) W20160809-11:44:39.642(2)? (STDERR) at Module.Mp.import (/Users/frazerkirkman/.meteor/packages/modules/.0.7.5.16wlehk++os+web.browser+web.cordova/npm/node_modules/reify/lib/runtime.js:70:16) W20160809-11:44:39.643(2)? (STDERR) at meteorInstall.node_modules.meteor.patrickml:react-modal.entry.js (packages/patrickml:react-modal/entry.js:1:1) W20160809-11:44:39.644(2)? (STDERR) at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:153:1) => Exited with code: 1 W20160809-11:44:45.403(2)? (STDERR) /Users/frazerkirkman/.meteor/packages/meteor-tool/.1.4.0-1.e8gar3++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280 W20160809-11:44:45.404(2)? (STDERR) throw(ex); W20160809-11:44:45.405(2)? (STDERR) ^ W20160809-11:44:45.406(2)? (STDERR) W20160809-11:44:45.408(2)? (STDERR) Error: Can't find npm module 'react-addons-css-transition-group'. Did you forget to call 'Npm.depends' in package.js within the 'modules-runtime' package? W20160809-11:44:45.408(2)? (STDERR) at Object.Npm.require (/Users/frazerkirkman/Code/Meteor/meme-trainer/.meteor/local/build/programs/server/boot.js:203:17) W20160809-11:44:45.409(2)? (STDERR) at options.fallback (packages/modules-runtime/modules-runtime.js:21:1) W20160809-11:44:45.409(2)? (STDERR) at Module.require (packages/modules-runtime/.npm/package/node_modules/install/install.js:88:1) W20160809-11:44:45.410(2)? (STDERR) at Module.Mp.import (/Users/frazerkirkman/.meteor/packages/modules/.0.7.5.16wlehk++os+web.browser+web.cordova/npm/node_modules/reify/lib/runtime.js:70:16) W20160809-11:44:45.410(2)? (STDERR) at meteorInstall.node_modules.meteor.patrickml:react-modal.lib.react-modal.jsx (/Users/frazerkirkman/Code/Meteor/meme-trainer/.meteor/local/build/programs/server/packages/patrickml_react-modal.js:86:252) W20160809-11:44:45.411(2)? (STDERR) at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:153:1) W20160809-11:44:45.412(2)? (STDERR) at Module.require (packages/modules-runtime/.npm/package/node_modules/install/install.js:82:1) W20160809-11:44:45.412(2)? (STDERR) at Module.Mp.import (/Users/frazerkirkman/.meteor/packages/modules/.0.7.5.16wlehk++os+web.browser+web.cordova/npm/node_modules/reify/lib/runtime.js:70:16) W20160809-11:44:45.413(2)? (STDERR) at meteorInstall.node_modules.meteor.patrickml:react-modal.entry.js (packages/patrickml:react-modal/entry.js:1:1) W20160809-11:44:45.414(2)? (STDERR) at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:153:1) => Exited with code: 1
I'll try just using the code as you suggested. Thanks :)
how on earth does mixins : [ReactModalMixin]
work?
I assume it 'imports' react-modal-component.jsx, but I cant work out how, and my meteor program cant do it either.
I copied your lib files in to my app, imported them, but then as soon as I add
ReferenceError: ReactModalMixin is not defined at meteorInstall.lib.jsx.EnclosedModal.jsx (lib/jsx/EnclosedModal.jsx:5:13)
I managed to get it working for meteor 1.4
https://github.com/Frazer/react-modal/
however, I'm not sure if your mixins or this.shouldComponentUpdate = PureRenderMixin.shouldComponentUpdate.bind(this);
do anything.
Any feedback? And I think I'll turn it in to a npm package - your thoughts?
@Frazer glad to hear it! I would love to get PR if possible. As for the PureRenderMixin
the React Docs show to use like so for es6 classes this.shouldComponentUpdate = PureRenderMixin.shouldComponentUpdate.bind(this);
https://facebook.github.io/react/docs/pure-render-mixin.html
The reason for adding the shouldComponentUpdate
was in case you inline the modal in a stateful component the modal won't constantly re-render unless the props like isOpen
are changed.
Personally, I have changed the architecture of my app to have one single modal that injects children into the modal from a component registry so the shouldComponentUpdate doesn't make much of a difference for myself.
Oh yes an npm package would be much better On Tue, Aug 9, 2016 at 5:46 PM Frazer Kirkman notifications@github.com wrote:
Any feedback? And I think I'll turn it in to a npm package - your thoughts?
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/patrickml/react-modal/issues/6#issuecomment-238702167, or mute the thread https://github.com/notifications/unsubscribe-auth/AHOuuauX6qGeI29IajEuPNvRaDZZjIcqks5qePUzgaJpZM4JfV_- .
Hey, I just figured out PR meant pull request... how would that work if the code is totally different now?
ah you didn't fork the repo did you. Are you going to support your version? If so i can just tell everyone to add your version instead.
I guess I'll support it. Not sure what that means exactly. I'll update it as I develop it.
Birk Skyum on the meteor forums suggested 'It would probably be better to polish reactjs/react-modal and send a pr.'
Hi, I'm new to Meteor, but cant see a clear way forward on how to fix this:
meteor add patrickml:react-modal
which then caused my running meteor instance to crash.so I
meteor remove patrickml:react-modal
and my app worked again. I thought updating might fix it running
meteor update
when I then tried to add MODAL again, it failed to install:
meteor add patrickml:react-modal
Detailed reports below:
meteor add patrickml:react-modal
so I
meteor remove patrickml:react-modal
and my app worked again. I thought updating might fix it
meteor update
note:
when I then tried to add MODAL again, it failed:
meteor add patrickml:react-modal
Any suggestions?