freeCodeCamp / league-for-good

An open source sports league management tool
BSD 3-Clause "New" or "Revised" License
163 stars 106 forks source link

Webpack does not compile due to the following errors: #104

Open AbdulrahmanEng opened 6 years ago

AbdulrahmanEng commented 6 years ago

Webpack does not compile due to the following errors:

WARNING in ./client/src/actions/games.js

/home/ubuntu/workspace/league-for-good/client/src/actions/games.js
  33:38  error  'games' is defined but never used  no-unused-vars

✖ 1 problem (1 error, 0 warnings)

 @ ./client/src/actions/index.js 115:13-31
 @ ./client/src/hoc/requireAuthentication.jsx
 @ ./client/src/app.jsx
 @ ./client/index.js

WARNING in ./client/src/reducers/seasons.js

/home/ubuntu/workspace/league-for-good/client/src/reducers/seasons.js
  6:2  error  'SELECT_SEASON' is defined but never used  no-unused-vars

✖ 1 problem (1 error, 0 warnings)

 @ ./client/src/reducers/index.js 55:15-35
 @ ./client/index.js

WARNING in configuration
The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.
You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets: 
  bundle.js (908 KiB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  main (908 KiB)
      bundle.js

WARNING in webpack performance recommendations: 
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/
paulywill commented 6 years ago

I am also seeing a similar warning:

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
  bundle.js (911 KiB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  main (911 KiB)
      bundle.js

WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/