Vue importing CSS file and reporting unrecognized input

A Vue project uses the swiper plug-in, and errors are reported when introducing swiper.css

  The unrecognized input of the imported CSS file is displayed in line4 and column12 of the file

In fact, the import location is wrong. The style file should be imported in the style tag instead of script

Solve the problem

Similar Posts: