Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

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

Open
AbdulrahmanEng opened this issue May 17, 2018 · 1 comment
Open

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

AbdulrahmanEng opened this issue May 17, 2018 · 1 comment

Comments

@AbdulrahmanEng
Copy link

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

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/

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

No branches or pull requests

2 participants