-
Notifications
You must be signed in to change notification settings - Fork 422
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
Unable to load canjs in node.js environment #1711
Comments
Thanks. This will be fixed in the next release. |
Btw, are you using browserify? Which version? With latest, you should only have to write:
|
No, I'm setting up unit-test environment to test my components' scope methods. I used var can = require('can'); But for plugins you still need to write: require('can/dist/cjs/object/object'); |
Do you think you could supplement this with an example on how to load CanJS within NodeJS? This isn't working for me, nor does loading it with StealJS. This issue doesn't appear resolved at the moment |
CanJS 2.2.6
I tried to load canjs using the code:
But I've met the exception:
I've found that
get_value_and_bind.js
requires '../util/util.js' but doesn't save result tovar can
.The text was updated successfully, but these errors were encountered: