<p>Open the Settings for the Tailwind IntelliSense Extension and add <code>**/vendor/**</code> to the <strong>Files: Exclude</strong> section.</p>
<p><a href="https://i.sstatic.net/LiIO1.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/LiIO1.png" alt="Extension settings" /></a></p>

CC BY-SA 4.0
2022-01-28T06:35:01.663Z
2022-01-28T06:35:01.663Z
Ludo
<p>Maybe it's something stupid I'm overlooking, but nevertheless I tried everything to overcome this error. I followed the tutorial step by step, so maybe I'm looking totally in the wrong direction here :-D</p>
<p><a href="https://i.sstatic.net/83KFo.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/83KFo.png" alt="Tailwind CSS: require(...) is not a function error in VSCode" /></a></p>
<p>And this is the path configured in tailwind.config.js:</p>
<p><a href="https://i.sstatic.net/rLt8R.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/rLt8R.png" alt="enter image description here" /></a></p>
<p>To verify that the path is correct, I made subtle adjustments to it, which gave me some other error:</p>
<p><a href="https://i.sstatic.net/g3r4c.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/g3r4c.png" alt="enter image description here" /></a></p>
<p>Anyone who has an idea where to go / look from here? :-)</p>
<p>Thank you very much in advance for thinking with me!</p>

CC BY-SA 4.0
2022-01-01T02:16:11.907Z
I’m voting to close this question because it not directly related to Craft CMS.
Brad Bell
<craft3><error><vscode>
Tailwind CSS: require(...) is not a function error in VSCode
# Tailwind CSS: require(...) is not a function error in VSCode

(Asked by: username_0 on 2021-12-30)

Maybe it's something stupid I'm overlooking, but nevertheless I tried everything to overcome this error. I followed the tutorial step by step, so maybe I'm looking totally in the wrong direction here :-D

[![Tailwind CSS: require(...) is not a function error in VSCode](https://i.sstatic.net/83KFo.png)](https://i.sstatic.net/83KFo.png)

And this is the path configured in tailwind.config.js:

[![enter image description here](https://i.sstatic.net/rLt8R.png)](https://i.sstatic.net/rLt8R.png)

To verify that the path is correct, I made subtle adjustments to it, which gave me some other error:

[![enter image description here](https://i.sstatic.net/g3r4c.png)](https://i.sstatic.net/g3r4c.png)

Anyone who has an idea where to go / look from here? :-)

Thank you very much in advance for thinking with me!

**Tags:** craft3, error, vscode
> **Comments:**
> **username_1**: I’m voting to close this question because it not directly related to Craft CMS.  

---

## 1 answers

### Answer by username_2 on 2022-01-28. Score: 2

Open the Settings for the Tailwind IntelliSense Extension and add `**/vendor/**` to the **Files: Exclude** section.

[![Extension settings](https://i.sstatic.net/LiIO1.png)](https://i.sstatic.net/LiIO1.png)


---

