The old and the new toolset cannot be used at the same time! This means eg. @HtmlImports are completely ignored when running the project in npm mode, and vice versa @JsModule is ignored when running the project in Vaadin 13 compatibility mode.
So if your html-imported file contains styles (I would guess so from the name shared-styles), you can rewrite that file into an explicit CSS file (remove the html tags wrapping the css code. No more <custom-style><style> insert css code here </style></custom-style>), save it as .css, and move it to your [frontend folder]
(https://stackoverflow.com/a/57553974/3441504).