# Webpack error when trying to load CSS file in Kibana 7.8

**URL:** https://discuss.elastic.co/t/webpack-error-when-trying-to-load-css-file-in-kibana-7-8/244629
**Category:** Kibana
**Created:** [August 11, 2020, 8:46pm UTC](https://discuss.elastic.co/t/webpack-error-when-trying-to-load-css-file-in-kibana-7-8/244629 "2020-08-11T20:46:28Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ssimmons](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@ssimmons](https://discuss.elastic.co/u/ssimmons)
#### Post date: [August 11, 2020, 8:46pm UTC](https://discuss.elastic.co/t/webpack-error-when-trying-to-load-css-file-in-kibana-7-8/244629/1 "2020-08-11T20:46:28Z")

</div>

I have Kibana 7.8 running in a Docker container. I'm trying to pull over a plugin I have in Kibana 7.5. I load a CSS file from within my visualization.js file. In Kibana 7.8, it is giving me the following error when it tries to load the CSS file:

```auto
ERROR in ./public/components/dod-equities.css 1:0
       │ 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
       │ > #title-div {
       │ | font-size: 1.1em;
       │ | font-weight: 600;
       │ @ ./public/components/visualization.js 22:0-29
       │ @ ./public/plugin.ts
       │ @ ./public/index.ts

```

Do I have to manually add a CSS webpack loader to allow Kibana 7.8 to load CSS files? I didn't have to do this for Kibana 7.5.

---

<div class="post-metadata">

### Author: ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)
#### Post date: [August 12, 2020, 11:53am UTC](https://discuss.elastic.co/t/webpack-error-when-trying-to-load-css-file-in-kibana-7-8/244629/2 "2020-08-12T11:53:56Z")

</div>

Can you show the code for the file importing the css file?

---

<div class="post-metadata">

### Author: ![ssimmons](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@ssimmons](https://discuss.elastic.co/u/ssimmons)
#### Post date: [August 12, 2020, 12:56pm UTC](https://discuss.elastic.co/t/webpack-error-when-trying-to-load-css-file-in-kibana-7-8/244629/3 "2020-08-12T12:56:42Z")

</div>

Here's the import section of my code.:

```auto
'use strict'
import React from "react";
import ReactTable from "./ReactTable";
import { orderBy } from "natural-orderby";
import Exceljs from "exceljs";
import _ from "lodash";
import "./dod-equities.css";
import { 
   EuiButton, 
   EuiModal,
   EuiOverlayMask,
   EuiModalHeader,
   EuiModalHeaderTitle,
   EuiModalBody,
   EuiLoadingSpinner 
} from "@elastic/eui";

```

As I stated in my previous post, this code is working in Kibana 7.5. I'm just trying to port it over to 7.8.

---

<div class="post-metadata">

### Author: ![ssimmons](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@ssimmons](https://discuss.elastic.co/u/ssimmons)
#### Post date: [August 12, 2020, 5:05pm UTC](https://discuss.elastic.co/t/webpack-error-when-trying-to-load-css-file-in-kibana-7-8/244629/4 "2020-08-12T17:05:41Z")

</div>

As a work around, I converted the `dod-equities.css` file into a SCSS file (`dod-equities.scss`) and Kibana 7.8 read that file just fine. I'd still like to be able to load standard CSS files as well.

---

<div class="post-metadata">

### Author: ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)
#### Post date: [August 13, 2020, 7:09am UTC](https://discuss.elastic.co/t/webpack-error-when-trying-to-load-css-file-in-kibana-7-8/244629/5 "2020-08-13T07:09:44Z")

</div>

Good catch, I think it's just not supported in another way right now.  
If you want, you can open a feature request here: [https://github.com/elastic/kibana/issues/new?template=Feature\_request.md](https://github.com/elastic/kibana/issues/new?template=Feature_request.md)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [September 10, 2020, 7:09am UTC](https://discuss.elastic.co/t/webpack-error-when-trying-to-load-css-file-in-kibana-7-8/244629/6 "2020-09-10T07:09:51Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
