-
Notifications
You must be signed in to change notification settings - Fork 797
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
forge does not load #215
Comments
This is a problem we plan to fix with a new build system. See #126. |
Is there any way around this issue until the "new build system" is live? |
@iamolivinius, unfortunately I'm swamped so I haven't had time to investigate getting forge working with browserify. Does anyone else have a good workaround? There's always the option to load forge just as a regular bundled script (or a set of scripts) or use requirejs for the time being. Obviously that's not ideal in browserify environments, but it should work. You may be able to use a tool like deamdify to get around any other issues. I haven't tried it myself. |
Right now I use an I'm not so confident with all the module formats but my first idea would be to make use of the ES6 module syntax and https://github.com/esnext/es6-module-transpiler to transpile into the different module formats. |
Yes, what I ended up doing was exactly as @dlongley said: I am including the bundled version and it seems to be working fine. |
Right. |
I have installed forge using bower and I'm trying to use it in an angularjs application. Do I need to inject anything to get it working? Right now it's failing with the following error:
The line causing the problem is:
It appears forge is a valid object, but random is not... |
Hrm was hoping to test node-forge as an alternate to asn1js / pkijs and also getting |
I'm also interested in this. Is there any news on this? |
Can you provide more details about how you're loading forge so we can try and help determine the problem? Can you generate and use the bundled version like others have? No updates on this front yet, but further discussion/ideas over at #126 or PRs are welcome. |
:bump: Is there an update on this ? |
@davidlehn -- can we get an update over at #357? |
@dlongley : This is easily avoidable on the user part, by decoupling what they want to do with browserify form forge and then using forge.min.js in the browser to get the same behavior. It took me 5 minutes of copy pasting. |
@henry74 use forge.min.js file this iwll resolve your error. |
0.7.0 was released with a new build system which should address this issue. Reopen if it's still a problem. |
With node.js, adding forge causes the javascript to halt on load with the error: "Uncaught Error: Cannot find module './aes'"
To reproduce:
gulpfile.js:
src/index.html:
src/js/main.jsx:
The text was updated successfully, but these errors were encountered: