-
Notifications
You must be signed in to change notification settings - Fork 3.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
Bug report: Master branch fails to build with fresh pull #360
Comments
Can't reproduce on a Mac, following commands were run:
Which worked. That looks suspiciously like Cmder though, so are you on Windows? |
I am on Windows, node version is 8.9.1. I haven't tried it on Linux or Mac yet. The commands I ran were the exact same as yours, and I made sure write permissions were set correctly. |
Could you try the solution to #335? Looks somewhat similar to what was going on there. |
Ah yes, just tried it out. Can indeed reproduce the issue on Windows using both Node v8.9.1 and v10.4.0. It appears the Gruntfile was specifically built for Linux systems only, noting the following lines: https://github.com/gchq/CyberChef/blob/master/Gruntfile.js#L379-L388 @artemisbot tried that, doesn't seem to fix the issue. I think the reason it's getting confused is because the configuration file just isn't there, the generation command isn't working. |
Ah right. In the meantime perhaps you could try using the LXSS/WSL? I haven't worked on CyberChef on Windows in a while, and when I have in the past it's been using that. |
You can get past the initial compilation issue by just doing it yourself, running the following commands from the command line:
And starting it with:
Then you run into two build issues:
And also the fact that you have to run those commands every time you change the configuration. The latter is fairly easy to solve by chucking it in a batch file. The former issues, more unknown. I'm assuming some of our required modules might, in some way, require Linux themselves. |
I can reproduce the same issue you're having @GCHQ77703 and attempted to get through it. I can get past the first one (es2015) error by running I got past the other error relating to strict mode by adding a plugin to babelrc (not sure if this is the correct route to take). Then it complained that I needed Babel ^7.0.0.0, so I upgraded my babel. |
@dgotrik I wonder if, in your uplift to 7.0.0, you ran into some incompatibilities based on changing env presets: babel/babel#6830 But when I look at the migration documentation I don't see anything that looks a likely candidate to cause this issue and both of the issues linked above both seem open and in the RFC stage. What version of Babel did you upgrade to? Is it a general availability release or a release candidate? |
In |
I am still working on getting things to work correctly in Windows. I verified it builds on Mac, but on linux (Ubuntu) I also had to do |
In the Gruntfile.js, the generateConfig script is not running correctly on Windows due to the "\n" and the way the path is formatted. As suggested in earlier replies you have to manually run the commands from generateConfig on the command line. You also need to remove the "clean:config" calls in the Grunt tasks for Prod and Dev so that when you build the project, you don't undo everything that you manually did. After doing all that, you will get an error which was shown in an earlier post: This can be fixed by opening node_modules/chi-squared/cdf.js and removing the "with" blocks in functions Gcf and Gser and specifying the "Math" library directly:
I hope that works for everyone. |
Same issue here on Windows. |
same problem here when try to build on 6-AUG-2019, OSX Please find the error below
|
We currently support Node v10 which is the LTS version (see Node support in the README). There are some issues with the crypto-api library that cause problems with some other versions of Node. We are working to get these fixed. The issue is being tracked in #596. |
Doing a fresh clone of the repository, the application fails to generate OperationConfig.json and OpModules.mjs and does not serve content.
Example
The text was updated successfully, but these errors were encountered: