Open kyrlon opened 1 year ago
When trying to run npm run dev i get the following error message:
npm run dev
>npm run dev > tlogviewer@1.0.0 dev > node --max_old_space_size=4096 node_modules/webpack-dev-server/bin/webpack-dev-server.js --host 0.0.0.0 --progress --config build/webpack.dev.conf.js <w> [webpack-dev-server] "hot: true" automatically applies HMR plugin, you don't have to add it manually to your webpack configuration. <i> [webpack-dev-server] [HPM] Proxy created: /upload -> http://localhost:8001/upload <i> [webpack-dev-server] [HPM] Proxy created: /eniro -> http://localhost:8001/eniro <i> [webpack-dev-server] [HPM] Proxy created: /uploaded -> http://localhost:8001/uploaded <i> [webpack-dev-server] Project is running at: <i> [webpack-dev-server] Loopback: http://localhost:8080/ <i> [webpack-dev-server] On Your Network (IPv4): http://192.168.1.29:8080/ <i> [webpack-dev-server] Content not from webpack is served from './' directory <i> [webpack-dev-server] 404s will fallback to '/index.html' 46% building 2/3 entries 2475/2500 dependencies 347/448 modules[BABEL] Note: The code generator has deoptimised the styling of C:\Users\kyrlon\UAVLogViewer\s as it exceeds the max of 500KB. 46% building 2/3 entries 4300/4668 dependencies 501/2044 modules[BABEL] Note: The code generator has deoptimised the styling of C:\Users\kyrlon\UAVLogViewer\s as it exceeds the max of 500KB. assets by status 44.4 MiB [cached] 180 assets Entrypoint app = 150 assets 23 auxiliary assets orphan modules 2.24 MiB [orphan] 318 modules runtime modules 32.2 KiB 17 modules modules by path ./node_modules/ 25.3 MiB javascript modules 25.2 MiB 4137 modules json modules 13.2 KiB 12 modules modules by path ./src/ 1.98 MiB 157 modules asset modules 5.73 KiB data:image/svg+xml,%3csvg xmlns=%27.. 324 bytes [built] [code generated] + 16 modules optional modules 120 bytes [optional] buffer (ignored) 15 bytes [optional] [built] [code generated] + 7 modules util (ignored) 15 bytes [built] [code generated] util (ignored) 15 bytes [built] [code generated] ./util.inspect (ignored) 15 bytes [built] [code generated] Entrypoint HtmlWebpackPlugin_0-0 = runtime modules 754 bytes 4 modules cacheable modules 1010 bytes data:text/javascript,__webpack_public.. 77 bytes [built] [code generated] ./node_modules/html-webpack-plugin/lib/loader.js!./index.html 935 bytes [built] [code generated] Child HtmlWebpackCompiler compiled successfully assets by status 2.27 MiB [cached] 1 asset runtime modules 1.02 KiB 5 modules modules by path ./node_modules/ 1.29 MiB javascript modules 1.28 MiB 334 modules json modules 12.7 KiB 6 modules optional modules 120 bytes [optional] buffer (ignored) 15 bytes [optional] [built] [code generated] buffer (ignored) 15 bytes [optional] [built] [code generated] + 6 modules modules by path ./src/ 677 KiB ./node_modules/babel-loader/lib/index.js!./node_modules/eslint-loader/dist/cjs.js??ruleSet[1].rules[19]!./src/tools/parsers/parser.worker.js 805 bytes [built] [code generated] ./src/tools/parsers/mavlinkParser.js 12.1 KiB [built] [code generated] ./src/libs/mavlink.js 663 KiB [built] [code generated] ./src/tools/parsers/modeMaps.js 1.35 KiB [built] [code generated] util (ignored) 15 bytes [built] [code generated] util (ignored) 15 bytes [built] [code generated] ERROR in ./src/tools/parsers/parser.worker.js (./node_modules/babel-loader/lib/index.js!./node_modules/eslint-loader/dist/cjs.js??ruleSet[1].rules[19]!./src/tools/parsers/parser.worker.js Module not found: Error: Can't resolve './JsDataflashParser/parser' in 'C:\Users\kyrlon\UAVLogViewer\src\tools\parsers' resolve './JsDataflashParser/parser' in 'C:\Users\kyrlon\UAVLogViewer\src\tools\parsers' using description file: C:\Users\kyrlon\UAVLogViewer\package.json (relative path: ./src/tools/parsers) Field 'browser' doesn't contain a valid alias configuration using description file: C:\Users\kyrlon\UAVLogViewer\package.json (relative path: ./src/tools/parsers/JsDataflashParser/parser) no extension Field 'browser' doesn't contain a valid alias configuration C:\Users\kyrlon\UAVLogViewer\src\tools\parsers\JsDataflashParser\parser doesn't exist .js Field 'browser' doesn't contain a valid alias configuration C:\Users\kyrlon\UAVLogViewer\src\tools\parsers\JsDataflashParser\parser.js doesn't exist .json Field 'browser' doesn't contain a valid alias configuration C:\Users\kyrlon\UAVLogViewer\src\tools\parsers\JsDataflashParser\parser.json doesn't exist .wasm Field 'browser' doesn't contain a valid alias configuration C:\Users\kyrlon\UAVLogViewer\src\tools\parsers\JsDataflashParser\parser.wasm doesn't exist as directory C:\Users\kyrlon\UAVLogViewer\src\tools\parsers\JsDataflashParser\parser doesn't exist
use git clone --recursive <repo name> to clone the project
git clone --recursive <repo name>
When trying to run
npm run dev
i get the following error message: