iost-official / explorer

IOST Blockchain explorer
GNU Lesser General Public License v3.0
14 stars 13 forks source link

The frontend "npm run build" command fails with ERROR in ./src/router/index.js: Module not found: Error: Can't resolve '../pages/Home' in '/home/oquinn/iost/explorer/frontend/src/router' #2

Closed jimoquinn closed 5 years ago

jimoquinn commented 6 years ago
oquinn@black:~/iost/explorer/frontend$ npm run build --report

> explorer@1.0.0 build /home/oquinn/iost/explorer/frontend
> node build/build.js

⠦ building for production...
Starting to optimize CSS...
Processing static/css/app.3a62fa2209b2ca6629fa6175df1da705.css...
Processed static/css/app.3a62fa2209b2ca6629fa6175df1da705.css, before: 47732, after: 47403, ratio: 99.31%
Hash: 35609639b3914185232e
Version: webpack 2.7.0
Time: 17432ms
                                                  Asset       Size  Chunks                    Chunk Names
          static/fontawesome/webfonts/fa-solid-900.woff    63.8 kB          [emitted]
               static/js/vendor.a2128fb7a6c091bca19c.js     689 kB       0  [emitted]  [big]  vendor
             static/js/manifest.feaabb1a09a43e90d68f.js    1.51 kB       2  [emitted]         manifest
    static/css/app.3a62fa2209b2ca6629fa6175df1da705.css    47.4 kB       1  [emitted]         app
           static/js/vendor.a2128fb7a6c091bca19c.js.map    4.46 MB       0  [emitted]         vendor

[ removed lots of extra messages ]

ERROR in ./src/router/index.js
Module not found: Error: Can't resolve '../pages/Home' in '/home/oquinn/iost/explorer/frontend/src/router'
 @ ./src/router/index.js 6:9-32
 @ ./src/main.js

  Build failed with errors.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! explorer@1.0.0 build: `node build/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the explorer@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/oquinn/.npm/_logs/2018-10-22T04_33_21_622Z-debug.log

This was fixed by running the following command:

mv pages/Home/Index.vue pages/Home/index.vue

jimoquinn commented 5 years ago

Fixed long ago, so closing this issue.