I’m using graylog-project to build graylog server and collector plugin locally.
I’m following the construction guides in https://github.com/Graylog2/graylog-project.
The graylog-project-cli run successfully, and i’m sure i made a correct server run configuration.
But when I run “mvn compile”, error occurred.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Graylog Parent POM … SUCCESS [ 0.002 s]
[INFO] Graylog Project Parent POM … SUCCESS [ 0.075 s]
[INFO] AutoValue JavaBean extension … SUCCESS [ 2.447 s]
[INFO] Graylog … FAILURE [04:08 min]
[INFO] Graylog Plugin Parent POM … SKIPPED
[INFO] Graylog Plugin with Web support Parent POM … SKIPPED
[INFO] graylog-plugin-collector … SKIPPED
[INFO] graylog-project … SKIPPED
[INFO] runner … SKIPPED
[INFO] integration-tests … SKIPPED
[INFO] graylog-plugin-archetype … SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
It seems that the reason is because “graylog2-web-interface/declarations/node/node.d.ts” not generated.
Any ideas?
part of the compile output is:
…
[INFO] — frontend-maven-plugin:1.4:npm (npm run build) @ graylog2-server —
[INFO] Running ‘npm run build’ in /Users/xxx/log-system/graylog-project-repos/graylog2-server/graylog2-web-interface
[INFO]
[INFO] > graylog-web-interface@2.3.1 build /Users/xxx/log-system/graylog-project-repos/graylog2-server/graylog2-web-interface
[INFO] > disable_plugins=true webpack --config webpack.bundled.js
[INFO]
[ERROR] Running in production mode
[ERROR] Building vendor bundle.
[ERROR] clean-webpack-plugin: /Users/xxx/log-system/graylog-project-repos/graylog2-server/graylog2-web-interface/build has been removed.
[ERROR] (node:89889) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
[ERROR] parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
[ERROR] ts-loader: Using typescript@1.8.10 and /Users/xxx/log-system/graylog-project-repos/graylog2-server/graylog2-web-interface/tsconfig.json
[INFO] Hash: 5fe4138e77a47c1077700c06cf06d426c0d3d8e1
[INFO] Version: webpack 2.7.0
[INFO] Child vendor:
[INFO] Hash: 5fe4138e77a47c107770
[INFO] Time: 12071ms
[INFO] Asset Size Chunks Chunk Names
[INFO] vendor.ab8f49e0e782eae99198.js 938 kB 0 [emitted] [big] vendor
[INFO] [0] dll vendor 12 bytes {0} [built]
[INFO] [1] ./~/react/react.js 56 bytes {0} [built]
[INFO] [3] ./~/moment/moment.js 139 kB {0} [built]
…
[INFO] polyfill.0c06cf06d426c0d3d8e1.js.map 699 kB 58 [emitted] polyfill
[INFO] favicon.png 1.62 kB [emitted]
[INFO] index.html 429 bytes [emitted]
[INFO] module.json 259 bytes [emitted]
[INFO] [1] delegated ./node_modules/reflux/src/index.js from dll-reference __vendor 42 bytes {57} [not cacheable] [built]
[INFO] [2] delegated ./node_modules/react/react.js from dll-reference __vendor 42 bytes {57} [not cacheable] [built]
[INFO] [18] ./src/injection/StoreProvider.jsx 1.7 kB {57} [built]
[INFO] [35] delegated ./node_modules/react-dom/index.js from dll-reference __vendor 42 bytes {57} [not cacheable] [built]
[INFO] [50] delegated ./node_modules/process/browser.js from dll-reference __vendor 42 bytes {57} [not cacheable] [built]
[INFO] [77] ./~/bluebird/js/browser/bluebird.js 179 kB {57} [built]
[INFO] [88] ./~/urijs/src/URI.js 63.8 kB {57} [built]
[INFO] [254] ./src/routing/AppFacade.jsx 2.59 kB {57} [built]
[INFO] [255] ./src/webpack-entry.js 703 bytes {57} [built]
[INFO] [256] ./~/babel-polyfill/lib/index.js 833 bytes {58} [built]
[INFO] [257] ./~/react-hot-loader/index.js 41 bytes {57} [built]
[INFO] [359] ./src/index.jsx 1.51 kB {57} [built]
[INFO] [821] ./~/react-hot-loader/lib/index.js 209 bytes {57} [built]
[INFO] [839] ./public/stylesheets/bootstrap-submenus.less 1.07 kB {57} [built]
[INFO] [876] multi babel-polyfill 28 bytes {58} [built]
[INFO] + 1506 hidden modules
[INFO]
[INFO] ERROR in ./src/components/search/QueryInput.ts
[INFO] (6,23): error TS2304: Cannot find name ‘require’.
[INFO]
[INFO] ERROR in ./src/components/search/QueryInput.ts
[INFO] (11,11): error TS2304: Cannot find name ‘require’.
[INFO]
[INFO] ERROR in ./src/components/search/QueryInput.ts
[INFO] (12,19): error TS2304: Cannot find name ‘require’.
[INFO]
[INFO] ERROR in ./src/stores/usagestats/UsageStatsOptOutStore.ts
[INFO] (4,18): error TS2304: Cannot find name ‘require’.
[INFO]
[INFO] ERROR in ./src/stores/usagestats/UsageStatsOptOutStore.ts
[INFO] (5,15): error TS2304: Cannot find name ‘require’.
[INFO]
[INFO] ERROR in ./src/stores/usagestats/UsageStatsOptOutStore.ts
[INFO] (7,26): error TS2304: Cannot find name ‘require’.
[INFO]
…
[INFO]
[INFO] ERROR in ./src/stores/widgets/WidgetsStore.ts
[INFO] (105,1): error TS2304: Cannot find name ‘module’.
[INFO]
[INFO] ERROR in ./src/stores/search/SearchStore.ts
[INFO] (10,16): error TS2304: Cannot find name ‘require’.
[INFO]
[INFO] ERROR in ./src/stores/search/SearchStore.ts
[INFO] (11,10): error TS2304: Cannot find name ‘require’.
[INFO]
[INFO] ERROR in ./src/stores/search/SearchStore.ts
[INFO] (12,18): error TS2304: Cannot find name ‘require’.
[INFO]
[INFO] ERROR in ./src/stores/search/SearchStore.ts
[INFO] (13,16): error TS2304: Cannot find name ‘require’.
[INFO]
[INFO] ERROR in ./src/stores/search/SearchStore.ts
[INFO] (14,17): error TS2304: Cannot find name ‘require’.
[INFO]
[INFO] ERROR in ./src/stores/search/SearchStore.ts
[INFO] (15,18): error TS2304: Cannot find name ‘require’.
[INFO]
[INFO] ERROR in ./src/stores/search/SearchStore.ts
[INFO] (2,1): error TS6053: File ‘/Users/xxx/log-system/graylog-project-repos/graylog2-server/graylog2-web-interface/declarations/node/node.d.ts’ not found.
[INFO]
[INFO] ERROR in ./src/stores/streams/StreamRulesStore.ts
[INFO] (3,26): error TS2304: Cannot find name ‘require’.
…
[INFO] ERROR in ./src/stores/users/PreferencesStore.ts
[INFO] (4,15): error TS2304: Cannot find name ‘require’.
[INFO] Child html-webpack-plugin for “module.json”:
[INFO] [0] ./~/lodash/lodash.js 540 kB {0} [built]
[INFO] [1] ./~/html-webpack-plugin/lib/loader.js!./templates/module.json.template 541 bytes {0} [built]
[INFO] [2] (webpack)/buildin/global.js 509 bytes {0} [built]
[INFO] [3] (webpack)/buildin/module.js 517 bytes {0} [built]
[INFO] Child html-webpack-plugin for “index.html”:
[INFO] [0] ./~/lodash/lodash.js 540 kB {0} [built]
[INFO] [1] ./~/html-webpack-plugin/lib/loader.js!./templates/index.html.template 1.71 kB {0} [built]
[INFO] [2] (webpack)/buildin/global.js 509 bytes {0} [built]
[INFO] [3] (webpack)/buildin/module.js 517 bytes {0} [built]
[ERROR]
[ERROR] npm ERR! Darwin 16.7.0
[ERROR] npm ERR! argv “/Users/xxx/log-system/graylog-project-repos/graylog2-server/graylog2-web-interface/node/node” “/Users/xxx/log-system/graylog-project-repos/graylog2-server/graylog2-web-interface/node/node_modules/npm/bin/npm-cli.js” “run” “build”
[ERROR] npm ERR! node v6.9.2
[ERROR] npm ERR! npm v4.0.3
[ERROR] npm ERR! code ELIFECYCLE
[ERROR] npm ERR! graylog-web-interface@2.3.1 build: disable_plugins=true webpack --config webpack.bundled.js
[ERROR] npm ERR! Exit status 2
[ERROR] npm ERR!
[ERROR] npm ERR! Failed at the graylog-web-interface@2.3.1 build script ‘disable_plugins=true webpack --config webpack.bundled.js’.
[ERROR] npm ERR! Make sure you have the latest version of node.js and npm installed.
[ERROR] npm ERR! If you do, this is most likely a problem with the graylog-web-interface package,
[ERROR] npm ERR! not with npm itself.
[ERROR] npm ERR! Tell the author that this fails on your system:
[ERROR] npm ERR! disable_plugins=true webpack --config webpack.bundled.js
[ERROR] npm ERR! You can get information on how to open an issue for this project with:
[ERROR] npm ERR! npm bugs graylog-web-interface
[ERROR] npm ERR! Or if that isn’t available, you can get their info via:
[ERROR] npm ERR! npm owner ls graylog-web-interface
[ERROR] npm ERR! There is likely additional logging output above.
[ERROR]
[ERROR] npm ERR! Please include the following file with any support request:
[ERROR] npm ERR! /Users/xxx/log-system/graylog-project-repos/graylog2-server/graylog2-web-interface/npm-debug.log
[INFO] ------------------------------------------------------------------------