Start a new topic

validation error

my app is working perfectly on localhost but encounter some issue while validating and packaging:


Packing failed due to the following issue(s):

[ERROR] app/app.js::1: 'e' is defined but never used.

[ERROR] app/app.js::1: 'n' is defined but never used.

[ERROR] app/app.js::1: 'n' is defined but never used.

[ERROR] app/app.js::1: 'n' is defined but never used.

[ERROR] app/app.js::1: 't' is defined but never used.

[ERROR] app/app.js::1: 'n' is defined but never used.

[ERROR] app/app.js::6: 't' is defined but never used.

[ERROR] app/app.js::6: 'n' is defined but never used.

[ERROR] app/app.js::6: 'n' is defined but never used.

[ERROR] app/app.js::6: 'n' is defined but never used.

[ERROR] app/app.js::6: 'n' is defined but never used.

[ERROR] app/app.js::6: 'n' is defined but never used.

[ERROR] app/app.js::29: Unexpected empty method 'enqueueForceUpdate'.

[ERROR] app/app.js::29: Unexpected empty method 'enqueueReplaceState'.

[ERROR] app/app.js::29: Unexpected empty method 'enqueueSetState'.

[ERROR] app/app.js::29: Unexpected empty function 'w'.

[ERROR] app/app.js::29: Unexpected empty method 'useDebugValue'.

[ERROR] app/app.js::37: 'c' is defined but never used.

[ERROR] app/app.js::37: 'c' is defined but never used.

[ERROR] app/app.js::37: 'u' is defined but never used.

[ERROR] app/app.js::37: Unexpected empty function 'ce'.

[ERROR] app/app.js::37: 'a' is defined but never used.

[ERROR] app/app.js::37: Unexpected empty function 't'.

[ERROR] app/app.js::37: Unexpected empty function 'Gn'.

[ERROR] app/app.js::37: 'e' is defined but never used.

[ERROR] app/app.js::37: 'e' is defined but never used.

[ERROR] app/app.js::37: Unexpected empty function.

[ERROR] app/app.js::37: 'n' is defined but never used.

[ERROR] app/app.js::37: 'e' is defined but never used.

[ERROR] app/app.js::37: 'e' is defined but never used.

[ERROR] app/app.js::37: Unexpected empty function 'Ti'.

[ERROR] app/app.js::37: Unexpected empty function.

[ERROR] app/app.js::37: 'n' is defined but never used.

[ERROR] app/app.js::45: Unexpected empty function.

[ERROR] app/app.js::45: Unexpected empty function.

[ERROR] app/app.js::45: Unexpected empty function.

[ERROR] app/app.js::45: Unexpected empty function 'a'.

[ERROR] app/app.js::45: Unexpected empty function 'o'.

[ERROR] app/app.js::45: 'n' is defined but never used.

[ERROR] app/app.js::45: 't' is defined but never used.

[ERROR] app/app.js::45: Unexpected empty function 'm'.

[ERROR] app/app.js::45: 'e' is defined but never used.

[ERROR] app/app.js::45: 'e' is defined but never used.

[ERROR] app/app.js::45: 'e' is defined but never used.

[ERROR] app/app.js::45: 'n' is defined but never used.

[ERROR] app/app.js::53: 't' is defined but never used.

[ERROR] app/app.js::53: 't' is defined but never used.

[ERROR] app/app.js::53: Unexpected confirm.

[ERROR] app/app.js::53: 'L' is defined but never used.

[ERROR] app/app.js::53: 't' is defined but never used.

[ERROR] app/app.js::53: 't' is defined but never used.

[ERROR] app/app.js::53: 'R' is defined but never used.

[ERROR] app/app.js::53: 'ce' is defined but never used.

[ERROR] app/app.js::53: 'ue' is defined but never used.

[ERROR] app/app.js::53: 'se' is defined but never used.

[ERROR] app/app.js::53: 'e' is defined but never used.

[ERROR] app/app.js::53: 'de' is defined but never used.

[ERROR] app/app.js::53: Unexpected empty function 'de'.

[ERROR] app/app.js::53: Unexpected empty function.

[ERROR] app/app.js::53: Unexpected empty function.

[ERROR] app/app.js::53: 'Ca' is assigned a value but never used.

[ERROR] app/app.js::53: 'Aa' is assigned a value but never used.

[ERROR] app/app.js::53: 'Sa' is assigned a value but never used.

[ERROR] app/app.js::53: 'za' is assigned a value but never used.


Hey Saurabh,


Would it be possible to share your app.js code?


Please feel free to remove the code that you think might be proprietary.

Hello Saurabh, 


Are you using any JS frameworks for your app, like React or Vue? It would appear there is some minified code you are trying to pack into your app. 

Login or Signup to post a comment