-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Cannot find module 'numbro' #3627
Comments
Can you create a demo when we can replicate the issue @mscreenie ? |
I have the same issue |
@mscreenie, @alex-erygin Did you tried include numbroJS (and rest required modules) before handsontable script? I've created working demo at http://jsfiddle.net/uojf62ja/2/. |
@budnix , thank you. This solution works:
But how can I make it work in a react js component? |
In react js you should import Handsontable with all required modules via |
This is still an issue and I did not close, just include barebones JS in the order of readme to reproduce. In my test case I am not using React, Boilerplate etc. Just Vanilla JS. Someone suggested Handsontable needs the modules to be defined as global which I'm not too sure is the problem. @AMBudnik |
I'll demo the issue thanks. |
Hi @mscreenie, Does this issue with loading Handsontable dependencies still occur? If you use Vanilla JS without any build tool this simple solution should work:
or as a single bundle
|
@budnix Thanks for your excellent support. I think I've solved this. The problem was not handsontable. I was loading handsontable inside a desktop chrome shell based on Chromium 41 - nwjs 12.3. Upon testing in latest Chrome I did not encounter any issues but when I tested in v.41. I encountered the numbro error. It's not necessarily a handsontable error - I don't expect handsontable to be tested against Chromium versions that old, nor did I expect this error because 41 has good ECMA support. edit: I don't know if its already done or todo but having dependencies available globally inside .full would be cool, such as pikaday etc. Again thanks for your continued support. |
I also had this issue. I resolved it by doing this (using babel + browserify):
|
Hi i am facing same issue and,here is link for description http://stackoverflow.com/questions/41638471/how-to-use-handsontable-library-in-angular-2 |
When trying to use a Bare distribution there the error "Cannot find module 'numbro'".
Tried including numbro. Doesn't work.
The text was updated successfully, but these errors were encountered: