A9T9 / RPA

UI.Vision: Open-Source RPA Software (formerly Kantu) - Modern Robotic Process Automation with Selenium IDE++
https://ui.vision/rpa
Other
1.17k stars 282 forks source link

unable to build project from source #53

Closed jesg closed 6 years ago

jesg commented 6 years ago

node version: 8.9.4 os: ubuntu 17.10

log when i run npm run build

> chrome-extension@1.0.0 build /home/jesg/opensource/Kantu-for-Chrome
> cross-env NODE_ENV=production webpack --config webpack.prod.config.js

clean-webpack-plugin: /home/jesg/opensource/Kantu-for-Chrome/dist has been removed.
Hash: 0dea26e9ba1038163678
Version: webpack 3.11.0
Time: 11132ms
            Asset       Size  Chunks                    Chunk Names
         popup.js    4.05 MB       0  [emitted]  [big]  popup
content_script.js     133 kB       1  [emitted]         content_script
    background.js     111 kB       2  [emitted]         background
        inject.js    2.48 kB       3  [emitted]         inject
  csv_editor.html  362 bytes          [emitted]         
         logo.png    2.21 kB          [emitted]         
    manifest.json  903 bytes          [emitted]         
       popup.html  344 bytes          [emitted]         
  [15] ./src/common/utils.js 7.58 kB {0} {1} {2} [built]
  [20] ./src/common/web_extension.js 4 kB {0} {1} {2} [built]
  [23] ./src/common/log.js 1.02 kB {0} {1} {2} [built]
  [29] ./src/common/constant.js 626 bytes {0} {1} {2} [built]
 [408] ./src/index.js 7.25 kB {0} [built]
 [568] ./src/app.js 5.13 kB {0} [built]
 [868] ./src/init_player.js 25.7 kB {0} [built]
 [872] ./src/config/preinstall_macros.js 31.6 kB {0} [built]
 [873] ./src/config/preinstall_suites.js 1.2 kB {0} [built]
 [874] ./src/ext/content_script.js 19.9 kB {1} [built]
 [875] ./src/common/ipc/cs_postmessage.js 3.22 kB {1} [built]
 [876] ./src/common/command_runner.js 20.5 kB {1} [built]
 [879] ./src/ext/inject.js 0 bytes {3} [built]
 [880] ./src/ext/bg.js 34.5 kB {2} [built]
 [883] ./src/config/index.js 243 bytes {2} [built]
    + 869 hidden modules

ERROR in ./src/components/edit_test_suite.js
Module not found: Error: Can't resolve 'codemirror/addon/edit/closebrackets' in '/home/jesg/opensource/Kantu-for-Chrome/src/components'
 @ ./src/components/edit_test_suite.js 18:0-45
 @ ./src/containers/sidebar/test_suites.js
 @ ./src/containers/sidebar/index.js
 @ ./src/app.js
 @ ./src/index.js

ERROR in ./src/containers/dashboard/editor.js
Module not found: Error: Can't resolve 'codemirror/addon/edit/closebrackets' in '/home/jesg/opensource/Kantu-for-Chrome/src/containers/dashboard'
 @ ./src/containers/dashboard/editor.js 31:0-45
 @ ./src/containers/dashboard/index.js
 @ ./src/app.js
 @ ./src/index.js

ERROR in ./src/components/edit_test_suite.js
Module not found: Error: Can't resolve 'codemirror/addon/edit/matchbrackets' in '/home/jesg/opensource/Kantu-for-Chrome/src/components'
 @ ./src/components/edit_test_suite.js 17:0-45
 @ ./src/containers/sidebar/test_suites.js
 @ ./src/containers/sidebar/index.js
 @ ./src/app.js
 @ ./src/index.js

ERROR in ./src/containers/dashboard/editor.js
Module not found: Error: Can't resolve 'codemirror/addon/edit/matchbrackets' in '/home/jesg/opensource/Kantu-for-Chrome/src/containers/dashboard'
 @ ./src/containers/dashboard/editor.js 30:0-45
 @ ./src/containers/dashboard/index.js
 @ ./src/app.js
 @ ./src/index.js

ERROR in ./src/components/edit_test_suite.js
Module not found: Error: Can't resolve 'codemirror/lib/codemirror' in '/home/jesg/opensource/Kantu-for-Chrome/src/components'
 @ ./src/components/edit_test_suite.js 15:0-35
 @ ./src/containers/sidebar/test_suites.js
 @ ./src/containers/sidebar/index.js
 @ ./src/app.js
 @ ./src/index.js

ERROR in ./src/containers/dashboard/editor.js
Module not found: Error: Can't resolve 'codemirror/lib/codemirror' in '/home/jesg/opensource/Kantu-for-Chrome/src/containers/dashboard'
 @ ./src/containers/dashboard/editor.js 28:0-35
 @ ./src/containers/dashboard/index.js
 @ ./src/app.js
 @ ./src/index.js

ERROR in ./src/components/edit_test_suite.js
Module not found: Error: Can't resolve 'codemirror/lib/codemirror.css' in '/home/jesg/opensource/Kantu-for-Chrome/src/components'
 @ ./src/components/edit_test_suite.js 19:0-39
 @ ./src/containers/sidebar/test_suites.js
 @ ./src/containers/sidebar/index.js
 @ ./src/app.js
 @ ./src/index.js

ERROR in ./src/containers/dashboard/editor.js
Module not found: Error: Can't resolve 'codemirror/lib/codemirror.css' in '/home/jesg/opensource/Kantu-for-Chrome/src/containers/dashboard'
 @ ./src/containers/dashboard/editor.js 32:0-39
 @ ./src/containers/dashboard/index.js
 @ ./src/app.js
 @ ./src/index.js

ERROR in ./src/components/edit_test_suite.js
Module not found: Error: Can't resolve 'codemirror/mode/javascript/javascript' in '/home/jesg/opensource/Kantu-for-Chrome/src/components'
 @ ./src/components/edit_test_suite.js 16:0-47
 @ ./src/containers/sidebar/test_suites.js
 @ ./src/containers/sidebar/index.js
 @ ./src/app.js
 @ ./src/index.js

ERROR in ./src/containers/dashboard/editor.js
Module not found: Error: Can't resolve 'codemirror/mode/javascript/javascript' in '/home/jesg/opensource/Kantu-for-Chrome/src/containers/dashboard'
 @ ./src/containers/dashboard/editor.js 29:0-47
 @ ./src/containers/dashboard/index.js
 @ ./src/app.js
 @ ./src/index.js

ERROR in ./src/common/csv.js
Module not found: Error: Can't resolve 'csv' in '/home/jesg/opensource/Kantu-for-Chrome/src/common'
 @ ./src/common/csv.js 1:0-22
 @ ./src/init_player.js
 @ ./src/index.js

ERROR in ./src/common/backup.js
Module not found: Error: Can't resolve 'file-saver' in '/home/jesg/opensource/Kantu-for-Chrome/src/common'
 @ ./src/common/backup.js 1:0-35
 @ ./src/actions/index.js
 @ ./src/index.js

ERROR in ./src/containers/sidebar/test_cases.js
Module not found: Error: Can't resolve 'file-saver' in '/home/jesg/opensource/Kantu-for-Chrome/src/containers/sidebar'
 @ ./src/containers/sidebar/test_cases.js 24:0-35
 @ ./src/containers/sidebar/index.js
 @ ./src/app.js
 @ ./src/index.js

ERROR in ./src/containers/sidebar/test_suites.js
Module not found: Error: Can't resolve 'file-saver' in '/home/jesg/opensource/Kantu-for-Chrome/src/containers/sidebar'
 @ ./src/containers/sidebar/test_suites.js 26:0-35
 @ ./src/containers/sidebar/index.js
 @ ./src/app.js
 @ ./src/index.js

ERROR in ./src/common/backup.js
Module not found: Error: Can't resolve 'jszip' in '/home/jesg/opensource/Kantu-for-Chrome/src/common'
 @ ./src/common/backup.js 2:0-26
 @ ./src/actions/index.js
 @ ./src/index.js

ERROR in ./src/containers/sidebar/test_suites.js
Module not found: Error: Can't resolve 'jszip' in '/home/jesg/opensource/Kantu-for-Chrome/src/containers/sidebar'
 @ ./src/containers/sidebar/test_suites.js 27:0-26
 @ ./src/containers/sidebar/index.js
 @ ./src/app.js
 @ ./src/index.js

ERROR in ./src/containers/sidebar/test_cases.js
Module not found: Error: Can't resolve 'jszip' in '/home/jesg/opensource/Kantu-for-Chrome/src/containers/sidebar'
 @ ./src/containers/sidebar/test_cases.js 25:0-26
 @ ./src/containers/sidebar/index.js
 @ ./src/app.js
 @ ./src/index.js

ERROR in ./src/common/send_keys.js
Module not found: Error: Can't resolve 'keysim' in '/home/jesg/opensource/Kantu-for-Chrome/src/common'
 @ ./src/common/send_keys.js 1:0-33
 @ ./src/common/command_runner.js
 @ ./src/ext/content_script.js

ERROR in ./src/containers/sidebar/test_suites.js
Module not found: Error: Can't resolve 'react-click-outside' in '/home/jesg/opensource/Kantu-for-Chrome/src/containers/sidebar'
 @ ./src/containers/sidebar/test_suites.js 25:0-47
 @ ./src/containers/sidebar/index.js
 @ ./src/app.js
 @ ./src/index.js

ERROR in ./src/containers/sidebar/index.js
Module not found: Error: Can't resolve 'react-click-outside' in '/home/jesg/opensource/Kantu-for-Chrome/src/containers/sidebar'
 @ ./src/containers/sidebar/index.js 17:0-47
 @ ./src/app.js
 @ ./src/index.js

ERROR in ./src/containers/sidebar/test_cases.js
Module not found: Error: Can't resolve 'react-click-outside' in '/home/jesg/opensource/Kantu-for-Chrome/src/containers/sidebar'
 @ ./src/containers/sidebar/test_cases.js 23:0-47
 @ ./src/containers/sidebar/index.js
 @ ./src/app.js
 @ ./src/index.js

ERROR in ./src/components/edit_test_suite.js
Module not found: Error: Can't resolve 'react-codemirror2' in '/home/jesg/opensource/Kantu-for-Chrome/src/components'
 @ ./src/components/edit_test_suite.js 14:0-63
 @ ./src/containers/sidebar/test_suites.js
 @ ./src/containers/sidebar/index.js
 @ ./src/app.js
 @ ./src/index.js

ERROR in ./src/containers/dashboard/editor.js
Module not found: Error: Can't resolve 'react-codemirror2' in '/home/jesg/opensource/Kantu-for-Chrome/src/containers/dashboard'
 @ ./src/containers/dashboard/editor.js 27:0-63
 @ ./src/containers/dashboard/index.js
 @ ./src/app.js
 @ ./src/index.js
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! chrome-extension@1.0.0 build: `cross-env NODE_ENV=production webpack --config webpack.prod.config.js`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the chrome-extension@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/jesg/.npm/_logs/2018-04-20T22_00_05_286Z-debug.log
A9T9 commented 6 years ago

Sorry, not sure what is causing this, hopefully someone else can help. We built it successfully on macOS and Windows.

jesg commented 6 years ago

@A9T9 i see the same issue when i run the build on my mac. hence i don't think it is related to my os.

do you use nodenv? does this project have any git submodules?

jesg commented 6 years ago

@A9T9 are you sure you are doing a clean build on these machines? or is project.json (also we should have a project-lock.json) out of date? i just went through and added dependencies until i could build the project from source.

see jesg/Kantu-for-Chrome@a4cdd8135c37794178a372f4818fcbf547ee867f

A9T9 commented 6 years ago

Thanks for the commit!