Search code examples
cssgatsbynetlify

Gatsby bundles failed


Node 12 Running Gatbsy build

Errors I get

 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

I tracked the error down to this the css file and this line.

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

Is there something I need to import to be able to get it to recognize this css in gatsby?


Solution

  • According to my comments with @FabricioG, the issue has been solved using relative paths, after some research in the project structure.

    This does the trick:

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