zDevelopers / ZePS-GUI

L'interface d'un outil de calcul d'itinéraires, principalement utilisé pour se repérer dans le Netherrail de Zcraft. Nécessite https://github.com/zDevelopers/ZePS-Core .
https://zeps.zcraft.fr
Other
6 stars 0 forks source link

Missing file when running dev server #9

Open jtremesay opened 3 years ago

jtremesay commented 3 years ago

The file web/dist/meta.json is missing.

I followed the readme:

git clone https://github.com/zDevelopers/ZePS-GUI.git zeps-gui
cd zeps-gui
composer install
npm install --save-dev
npm run dev

Full npm run dev output:

> zeps-gui@1.8.4 dev /home/killruana/projects/zeps-gui
> npm-run-all --parallel php-server webpack-server

> zeps-gui@1.8.4 php-server /home/killruana/projects/zeps-gui
> WEBPACK_DEV_SERVER="8080" php -S 0.0.0.0:8888 -t ./web/

> zeps-gui@1.8.4 webpack-server /home/killruana/projects/zeps-gui
> webpack-dev-server --host 0.0.0.0

[Mon Nov 23 21:54:07 2020] PHP 7.4.12 Development Server (http://0.0.0.0:8888) started
ℹ 「wds」: Project is running at http://0.0.0.0:8080/
ℹ 「wds」: webpack output is served from /dist/
ℹ 「wds」: Content not from webpack is served from /home/killruana/projects/zeps-gui/web
ℹ 「wds」: 404s will fallback to /index.html
ℹ 「wdm」: Hash: 51bcd14605bc6d8a217a
Version: webpack 4.44.2
Time: 5095ms
Built at: 11/23/2020 9:54:13 PM
                           Asset       Size    Chunks             Chunk Names
          /fonts/Lato-italic.eot   26.8 KiB            [emitted]  
          /fonts/Lato-italic.svg   81.4 KiB            [emitted]  
          /fonts/Lato-italic.ttf   58.9 KiB            [emitted]  
         /fonts/Lato-italic.woff   17.9 KiB            [emitted]  
        /fonts/Lato-italic.woff2   14.3 KiB            [emitted]  
         /fonts/Lato-regular.eot   25.6 KiB            [emitted]  
         /fonts/Lato-regular.svg   78.4 KiB            [emitted]  
         /fonts/Lato-regular.ttf   58.4 KiB            [emitted]  
        /fonts/Lato-regular.woff   16.8 KiB            [emitted]  
       /fonts/Lato-regular.woff2   13.5 KiB            [emitted]  
  /fonts/fontawesome-webfont.eot    162 KiB            [emitted]  
  /fonts/fontawesome-webfont.svg    434 KiB            [emitted]  
  /fonts/fontawesome-webfont.ttf    162 KiB            [emitted]  
 /fonts/fontawesome-webfont.woff   95.7 KiB            [emitted]  
/fonts/fontawesome-webfont.woff2   75.4 KiB            [emitted]  
           /images/layers-2x.png   1.23 KiB            [emitted]  
              /images/layers.png  696 bytes            [emitted]  
         /images/marker-icon.png   1.43 KiB            [emitted]  
                   vendor.min.js   3.24 MiB    vendor  [emitted]  vendor
                zeps-gui.min.css    304 KiB  zeps-gui  [emitted]  zeps-gui
                 zeps-gui.min.js    464 KiB  zeps-gui  [emitted]  zeps-gui
Entrypoint zeps-gui = vendor.min.js zeps-gui.min.css zeps-gui.min.js
[0] multi ../node_modules/webpack-dev-server/client?http://0.0.0.0:8080 ../node_modules/webpack/hot/dev-server.js ./js/index.js 52 bytes {zeps-gui} [built]
[../node_modules/jquery/dist/jquery.js] 281 KiB {vendor} [built]
[../node_modules/strip-ansi/index.js] 161 bytes {vendor} [built]
[../node_modules/webpack-dev-server/client/index.js?http://0.0.0.0:8080] ../node_modules/webpack-dev-server/client?http://0.0.0.0:8080 4.29 KiB {vendor} [built]
[../node_modules/webpack-dev-server/client/overlay.js] 3.51 KiB {vendor} [built]
[../node_modules/webpack-dev-server/client/socket.js] 1.53 KiB {vendor} [built]
[../node_modules/webpack-dev-server/client/utils/createSocketUrl.js] 2.91 KiB {vendor} [built]
[../node_modules/webpack-dev-server/client/utils/log.js] 964 bytes {vendor} [built]
[../node_modules/webpack-dev-server/client/utils/reloadApp.js] 1.59 KiB {vendor} [built]
[../node_modules/webpack-dev-server/client/utils/sendMessage.js] 402 bytes {vendor} [built]
[../node_modules/webpack/hot sync ^\.\/log$] ../node_modules/webpack/hot sync nonrecursive ^\.\/log$ 170 bytes {zeps-gui} [built]
[../node_modules/webpack/hot/dev-server.js] 1.59 KiB {vendor} [built]
[../node_modules/webpack/hot/emitter.js] 75 bytes {vendor} [built]
[../node_modules/webpack/hot/log-apply-result.js] 1.27 KiB {vendor} [built]
[./js/index.js] 2.17 KiB {zeps-gui} [built]
    + 64 hidden modules
Child mini-css-extract-plugin ../node_modules/css-loader/dist/cjs.js??ref--5-1!../node_modules/sass-loader/lib/loader.js??ref--5-2!scss/zeps.scss:
    Entrypoint mini-css-extract-plugin = *
    [../node_modules/css-loader/dist/cjs.js?!../node_modules/sass-loader/lib/loader.js?!./scss/zeps.scss] ../node_modules/css-loader/dist/cjs.js??ref--5-1!../node_modules/sass-loader/lib/loader.js??ref--5-2!./scss/zeps.scss 646 KiB {mini-css-extract-plugin} [built]
    [../node_modules/css-loader/dist/runtime/api.js] 1.57 KiB {mini-css-extract-plugin} [built]
    [../node_modules/css-loader/dist/runtime/cssWithMappingToString.js] 2.21 KiB {mini-css-extract-plugin} [built]
    [../node_modules/css-loader/dist/runtime/getUrl.js] 830 bytes {mini-css-extract-plugin} [built]
    [../node_modules/leaflet/dist/images/layers-2x.png] 67 bytes {mini-css-extract-plugin} [built]
    [../node_modules/leaflet/dist/images/layers.png] 64 bytes {mini-css-extract-plugin} [built]
    [../node_modules/leaflet/dist/images/marker-icon.png] 69 bytes {mini-css-extract-plugin} [built]
    [./fonts/Lato-italic/Lato-italic.eot] 68 bytes {mini-css-extract-plugin} [built]
    [./fonts/Lato-italic/Lato-italic.svg] 68 bytes {mini-css-extract-plugin} [built]
    [./fonts/Lato-italic/Lato-italic.ttf] 68 bytes {mini-css-extract-plugin} [built]
    [./fonts/Lato-italic/Lato-italic.woff] 69 bytes {mini-css-extract-plugin} [built]
    [./fonts/Lato-italic/Lato-italic.woff2] 70 bytes {mini-css-extract-plugin} [built]
    [./fonts/Lato-regular/Lato-regular.eot] 69 bytes {mini-css-extract-plugin} [built]
    [./fonts/Lato-regular/Lato-regular.svg] 69 bytes {mini-css-extract-plugin} [built]
    [./fonts/Lato-regular/Lato-regular.ttf] 69 bytes {mini-css-extract-plugin} [built]
        + 8 hidden modules
ℹ 「wdm」: Compiled successfully.
node:internal/process/promises:218
          triggerUncaughtException(err, true /* fromPromise */);
          ^

[Error: ENOENT: no such file or directory, open 'web/dist/meta.json'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: 'web/dist/meta.json'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zeps-gui@1.8.4 webpack-server: `webpack-dev-server --host 0.0.0.0`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the zeps-gui@1.8.4 webpack-server 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/killruana/.npm/_logs/2020-11-23T20_54_14_116Z-debug.log
ERROR: "webpack-server" exited with 1.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zeps-gui@1.8.4 dev: `npm-run-all --parallel php-server webpack-server`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the zeps-gui@1.8.4 dev 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/killruana/.npm/_logs/2020-11-23T20_54_14_200Z-debug.log
AmauryCarrade commented 3 years ago

I cannot look into it right now but what if you create the dist folder manually?

The meta.json file is automatically generated; I suspect the missing file to be the parent directory, here.

jtremesay commented 3 years ago

It' runs if I create the dir manually

AmauryCarrade commented 3 years ago

Thank you. This should be easy to fix, I hope. I'm still afraid of webpack configuration.