Having trouble running the webui
paul-dev8 opened this issue · comments
I installed the most recent node.js 7.2 and webpack 2.1.0 beta 27 and after I install the dependencies, I get the following error. Any idea what I need to do to fix it? Thanks! It's really great of you to open source this!
Webpack is watching the files…
Hash: 30c04c184e14f933f9c3
Version: webpack 2.1.0-beta.27
Time: 460ms
Asset Size Chunks Chunk Names
bundle.js 5.29 kB 0 [emitted] main
+ 1 hidden modules
ERROR in ./App/index.js
Module build failed: ReferenceError: [BABEL] c:\wamp64\nodejs\javascript-obfuscator-ui-master\App\index.js: Unknown option: c:\wamp64\nodejs\javascript-obfuscator-ui-master\node_modules\react\react.js.Children. Check out http://babeljs.io/docs/usage/options/ for more information about options.
A common cause of this error is the presence of a configuration options object without the corresponding preset name. Example:
Invalid:
{ presets: [{option: value}] }
Valid:
{ presets: [['presetName', {option: value}]] }
For more detailed information on preset configuration, please see http://babeljs.io/docs/plugins/#pluginpresets-options. (While processing preset: "c:\wamp64\nodejs\javascript-obfuscator-ui-master\node_modules\react\react.js")
at Logger.error (c:\wamp64\nodejs\javascript-obfuscator-ui-master\node_modules\babel-core\lib\transformation\file\logger.js:41:11)
at OptionManager.mergeOptions (c:\wamp64\nodejs\javascript-obfuscator-ui-master\node_modules\babel-core\lib\transformation\file\options\option-manager.js:221:20)
at c:\wamp64\nodejs\javascript-obfuscator-ui-master\node_modules\babel-core\lib\transformation\file\options\option-manager.js:260:14
at c:\wamp64\nodejs\javascript-obfuscator-ui-master\node_modules\babel-core\lib\transformation\file\options\option-manager.js:329:22
at Array.map (native)
at OptionManager.resolvePresets (c:\wamp64\nodejs\javascript-obfuscator-ui-master\node_modules\babel-core\lib\transformation\file\options\option-manager.js:270:20)
at OptionManager.mergePresets (c:\wamp64\nodejs\javascript-obfuscator-ui-master\node_modules\babel-core\lib\transformation\file\options\option-manager.js:259:10)
at OptionManager.mergeOptions (c:\wamp64\nodejs\javascript-obfuscator-ui-master\node_modules\babel-core\lib\transformation\file\options\option-manager.js:244:14)
at OptionManager.init (c:\wamp64\nodejs\javascript-obfuscator-ui-master\node_modules\babel-core\lib\transformation\file\options\option-manager.js:374:12)
at File.initOptions (c:\wamp64\nodejs\javascript-obfuscator-ui-master\node_modules\babel-core\lib\transformation\file\index.js:216:65)
at new File (c:\wamp64\nodejs\javascript-obfuscator-ui-master\node_modules\babel-core\lib\transformation\file\index.js:139:24)
at Pipeline.transform (c:\wamp64\nodejs\javascript-obfuscator-ui-master\node_modules\babel-core\lib\transformation\pipeline.js:46:16)
at transpile (c:\wamp64\nodejs\javascript-obfuscator-ui-master\node_modules\babel-loader\lib\index.js:41:20)
at Object.module.exports (c:\wamp64\nodejs\javascript-obfuscator-ui-master\node_modules\babel-loader\lib\index.js:138:12)
Hi!
It's really nice to see someone else using this code!
I'm not sure what is the issue. I deleted my node_modules
folder and installed everything again and it worked, so it's not an issue with a newer react version.
Can you try to delete yours node_modules
folder, install yarn
and run:
# run this instead of npm install
yarn
npm run updatesemantic
npm run webpack:dev
Thanks!
You're welcome! Please let me know if using yarn
solved your issue.
fsevents
isn't really necessary. You can comment it on packages.json
.
Webpack is really slow on macOS without it, so I installed it, but I didn't know it wasn't compatible with Windows.
That's true. I can't imagine how hard it's to use all these modern tools on Windows.
This is a issue with a dirty hack to get semantic-ui work as expected. Please see Semantic-Org/Semantic-UI-LESS#10 (comment)
Now you have to run node server.js
. Crossing fingers
Will do, thanks for trying on a different platform!
I made the UI follow the same defaults the javascript-obfuscator library uses. There're tradeoffs for each option/
Thank you, Paul! I updated the README as well.
Thanks Tiago, this is awesome!
By the way, if someone is looking for this error while running "npm run webpack:dev":
0% compiling
Webpack is watching the files…69% building modules 850/851 modules 1 active ...pt-obfuscator-ui/App/styles/main.lessKilled
The solution is: Increase or add a swapfile to your server!
Cheers.
You're welcome, @hoan-pham ! Thanks for posting your solution!