盖茨比捆绑包失败

Gatsby bundles failed

节点 12 运行Gatbsy build

我遇到的错误

 ERROR #98123  WEBPACK

Generating JavaScript bundles failed

Module parse failed: Unexpected character '' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)

File: src/styles/plugins/rs-plugin-6.custom/css/rs6.css:1:0


 ERROR #98123  WEBPACK

Generating JavaScript bundles failed

Unexpected character '' (1:0)

File: src/styles/plugins/rs-plugin-6.custom/css/openhand.cur:1:0

我追踪到 css 文件和这一行的错误。

rs-carousel-wrap {
    cursor:url(openhand.cur), move;
}

我需要导入什么才能让它在 gatsby 中识别这个 css 吗?

根据我对 @FabricioG 的评论,在对项目结构进行一些研究后,使用相对路径解决了这个问题。

这样就可以了:

cursor:URL("./openhand.cur"), move;