Expected an assignment or function call and instead saw an expression while creating npm package

Currently Im working on creating a npm component. Where i created one and linked to … Read more Expected an assignment or function call and instead saw an expression while creating npm package

Currently Im working on creating a npm component. Where i created one and linked to another project using npm link command. While I run i get the error:

srcsystem-popupdistindex.js
  Line 2:460:    Expected an assignment or function call and instead saw an expression  no-unused-expressions

multiple time. That is the error is in the build file( I used web pack ). The System-popup is the package folder and dist is the build folder of this package. The same component works properly when I import using

import WindowsEight from '<location to file>/system-popup/WindowsEight/WindowsEight.jsx';

But not working as a package

Source: JavaSript – Stack Overflow



Leave a Reply

Your email address will not be published. Required fields are marked *