Webpack Error: Unexpected Token in SVG File (narwhal-404.svg)
This error message indicates that there is an issue with the file 'narwhal-404.svg' located in the '../ui-lib/icons/dremio/narwhal/' directory.
The error specifically states that there is an unexpected token at line 1, column 0 of the file. This means that the file is not in a format that can be parsed correctly by the current configuration.
The error message also suggests that you may need to configure an appropriate loader to handle this file type. Loaders are used in webpack to preprocess files before they are bundled.
To resolve this issue, you should check your webpack configuration and make sure that you have a loader configured to handle SVG files. You can refer to the provided link ('https://webpack.js.org/concepts#loaders') for more information on how to configure loaders in webpack.
原文地址: https://www.cveoy.top/t/topic/qELN 著作权归作者所有。请勿转载和采集!