-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Issue with require statements for hotkeys. #149
Comments
This looks like an issue with sprokects-commoner... the published JS files are simply the output of the TypeScript compiler when compiling to CommonJS format. They work fine with webpack and browserify. |
Okay, I'll file this as an issue over there - hopefully after I figure out exactly what's broken. Do you have any idea why the require statements for hotkeysTarget and hotkeysDialog are the only ones in the library with issues? |
nothing sticks out about those specific exports... can you paste the full output of the TypeErrors? |
I don't think it'll be very useful, but here it is:
|
i'll be it's due to circular dependencies between the TS modules, which is fine in the TS compiler but probably not fine in "browserify." i know that some bundlers will return |
@giladgray so is this something that commoner needs to fix, or is it something I need to work around? It sounds like this is expected behavior. |
i don't know, i've never even heard of commoner (ruby died to me years ago) 😢 . given that this causes no troubles in the standard JS tools (webpack and browserify), i'd assume there's something going wrong in commoner itself. |
Looks like it is due to circular dependencies: |
I'll tack on here that I've made a repo that shows how I've configured blueprintjs, react, and react-router in a rails app: https://github.com/teaearlgraycold/blueprintjs-rails-example |
I'm getting same error with fuse-box. |
Bug Report
I'm using blueprint.js in Rails through the help of the sprockets-commoner gem (which is a replacement for browserify).
Describe the issue:
When importing from
@blueprintjs/core
, a few require statements provide me with issues. Incomponents/hotkeys/hotkeys.js
, lines 27, 34, and 35 need to be commented out, else blueprint will not import.Otherwise I get exceptions like
Uncaught TypeError: Cannot read property 'setHotkeysDialogProps' of undefined(…)
.The text was updated successfully, but these errors were encountered: