Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing file when running dev server #9

Open
jtremesay opened this issue Nov 23, 2020 · 3 comments
Open

Missing file when running dev server #9

jtremesay opened this issue Nov 23, 2020 · 3 comments
Labels

Comments

@jtremesay
Copy link

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:

> [email protected] dev /home/killruana/projects/zeps-gui
> npm-run-all --parallel php-server webpack-server


> [email protected] php-server /home/killruana/projects/zeps-gui
> WEBPACK_DEV_SERVER="8080" php -S 0.0.0.0:8888 -t ./web/


> [email protected] 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! [email protected] webpack-server: `webpack-dev-server --host 0.0.0.0`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] 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! [email protected] dev: `npm-run-all --parallel php-server webpack-server`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] 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
Copy link
Member

AmauryCarrade commented Nov 24, 2020

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
Copy link
Author

jtremesay commented Nov 24, 2020

It' runs if I create the dir manually

@AmauryCarrade
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants