When importing npm packages and using them in your code in Wix IDE, linter errors might appear for the valid code. These errors are only a UI effect which doesn't affect the code itself.
This article is credited to the Wix team - https://support.wix.com/ and we thank them for that!