codedthemes / berry-free-react-admin-template

Berry free react material-ui admin template for easing and faster web development.
https://berrydashboard.io/free/
MIT License
1.78k stars 884 forks source link

Production build - Not working #4

Closed app-generator closed 2 years ago

app-generator commented 3 years ago

The dev mode is running as expected, but the production build is bumps a blank page and many errors in the console:

[Wed Jul 07 20:15:41 2021] ::1:53014 [404]: /demos/admin-templates/berry/react/static/css/3.03ebe89f.chunk.css - No such file or directory
[Wed Jul 07 20:15:41 2021] ::1:58156 [404]: /demos/admin-templates/berry/react/static/css/main.03ea965b.chunk.css - No such file or directory
[Wed Jul 07 20:15:41 2021] ::1:60829 [404]: /demos/admin-templates/berry/react/static/js/3.e2a8a729.chunk.js - No such file or directory
[Wed Jul 07 20:15:41 2021] ::1:56956 [404]: /demos/admin-templates/berry/react/static/js/main.7c1cf16c.chunk.js - No such file or directory
[Wed Jul 07 20:15:41 2021] ::1:49493 [404]: /demos/admin-templates/berry/react/static/js/3.e2a8a729.chunk.js - No such file or directory
[Wed Jul 07 20:15:41 2021] ::1:51447 [404]: /demos/admin-templates/berry/react/static/js/main.7c1cf16c.chunk.js - No such file or directory
[Wed Jul 07 20:15:41 2021] ::1:59220 [404]: /demos/admin-templates/berry/react/favicon.svg - No such file or directory
[Wed Jul 07 20:16:09 2021] ::1:65362 [404]: /serviceworker.js - No such file or directory

Steps to reproduce the issue:

1 - clone the repo 2 - Install deps via yarn 3 - Exec the production build yarn build 4 - visualize the files generated in the build directory

Thanks in advance for your help

codedthemes commented 3 years ago

There must be some another issue. I just reclone repo and do that same as you did.

PS D:\Development\Phoenix\git\berry-free-react-admin-template-1> yarn build
yarn run v1.22.10
$ react-scripts build
Creating an optimized production build...
Compiled successfully.

File sizes after gzip:

  202.61 KB  build\static\js\3.647ce238.chunk.js
  126.24 KB  build\static\js\4.4ff677d8.chunk.js
  31.17 KB   build\static\js\0.05dda5df.chunk.js
  15.39 KB   build\static\js\main.95cf1b65.chunk.js
  4.38 KB    build\static\js\12.27819d14.chunk.js
  3.33 KB    build\static\js\6.3a2bae74.chunk.js
  2.92 KB    build\static\js\5.cae2cb4e.chunk.js
  2.12 KB    build\static\js\7.1e27f5b4.chunk.js
  1.74 KB    build\static\js\11.153d105f.chunk.js
  1.53 KB    build\static\js\9.d3190418.chunk.js
  1.35 KB    build\static\js\8.a74997b3.chunk.js
  1.34 KB    build\static\js\10.1fcd395a.chunk.js
  1.29 KB    build\static\js\runtime-main.99622e19.js
  906 B      build\static\css\main.bdc6e0c8.chunk.css
  564 B      build\static\css\3.03ebe89f.chunk.css
  517 B      build\static\js\13.4bea25d3.chunk.js

The project was built assuming it is hosted at /free/.
You can control this with the homepage field in your package.json.

The build folder is ready to be deployed.

Find out more about deployment here:

  https://cra.link/deployment

Done in 134.63s.
PS D:\Development\Phoenix\git\berry-free-react-admin-template-1>

Can you please retry. My node and yarn versions are below:

PS D:\Development\Phoenix\git\berry-free-react-admin-template-1> node -v
v14.15.4
PS D:\Development\Phoenix\git\berry-free-react-admin-template-1> yarn -v
1.22.10
PS D:\Development\Phoenix\git\berry-free-react-admin-template-1> 
codedthemes commented 2 years ago

Closing, as it's no longer an issue.