-
Notifications
You must be signed in to change notification settings - Fork 469
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
Problem window is not defined #15
Comments
I found a place where window is referenced loosely. v1.18.2 should fix it. Can you try again? Right now, react-trello does not support injecting an external store. But it should be possible to dynamically add reducers to an existing store as discussed here: https://stackoverflow.com/questions/32968016/how-to-dynamically-load-reducers-for-code-splitting-in-a-redux-application Pls feel free to make that change and submit a PR. Else will try to incorporate this feature sometime |
Thank you for your answer! |
Sorry again! can you check with v1.18.3 |
I found your fix but in my node_modules in the dist version of the react-trello library in my project I found this in the Board.js file The problem occurs when I start webpack with my project in my local environment. |
yes i think you have frozen the package version to 1.18.2. Can you bump it to 1.18.3 |
Ok! Thank you! Everything is working well now!! I'm testing your Board and seems that custom cards have this 3 different "strange" type of problems:
Browser is Google Chrome Version 59.0.3071.115 (Official Build) (64-bit) It also happens on your sample https://rcdexta.github.io/react-trello/?selectedKind=react-trello&selectedStory=Drag-n-Drop&full=0&down=0&left=1&panelRight=0 |
@fritzZz Thanks for pointing out the issues with custom cards. I think the drag-n-drop feature is buggy when the card has custom template. Working on it.. will keep you posted |
I really want to use your component in my project so if you can "try" to give me more information about the progress of you bugfix I would be greatful! |
Hey @fritzZz. I am working on this issue this weekend and will be able to push something out by monday.. |
Have rewritten most of the drag-n-drop logic to handle multiple cases. One know issue now is when you move a card from one lane to another, it will always be added to the end. That might be fixed in future. Other issues that you mentioned have been fixed. You can test drag-n-drop with custom card templates here: |
Great! I will try it tomorrow!! :) |
Wow! Great job! It's working fine now! |
Glad to help. Thanks |
When I try to add your library to my project I get this error:
] [dev:server] /home/blablabla/demo/node_modules/react-trello/dist/components/Board.js:33 [2] var store = (0, _redux.createStore)(_BoardReducer2.default, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()); [2] ^ [2] ReferenceError: window is not defined [2] at Object.<anonymous> (/home/blablabla/demo/node_modules/react-trello/dist/components/Board.js:33:61) [2] at Module._compile (module.js:570:32) [2] at Object.Module._extensions..js (module.js:579:10) [2] at Module.load (module.js:487:32) [2] at tryModuleLoad (module.js:446:12) [2] at Function.Module._load (module.js:438:3) [2] at Module.require (module.js:497:17) [2] at require (internal/module.js:20:19) [2] at Object.<anonymous> (/home/blablabla/demo/node_modules/react-trello/dist/index.js:8:14) [2] at Module._compile (module.js:570:32)
How can I solve this issue? I saw an other issue closed but the problem already exists.
I'm using the version "react-trello":"^1.18.1"-
I've seen that you define also a store (redux) for your library? How can I use my redux store instead of your?
Thank you!
The text was updated successfully, but these errors were encountered: