You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I installed the @nuxt/tailwindcss, I got an error "input.includes is not a function".
If I transform it to string format, it works fine.
For example.
css: ['~assets/scss/global.scss']
After some debugging, I found out that in the module file in the setup function, it expected to receive the nuxt.options.css as an array of strings only.
mena234
changed the title
input.includes is not a function when push an css option in object format.
input.includes is not a function when add a css with object format in nuxt.config.js css property.
Oct 29, 2022
While I was upgrading an old Nuxt project, there are some CSS files declared in an object format in nuxt.config.js file.
For example.
When I installed the @nuxt/tailwindcss, I got an error "input.includes is not a function".
If I transform it to string format, it works fine.
For example.
After some debugging, I found out that in the module file in the setup function, it expected to receive the
nuxt.options.css
as an array of strings only.I think it should check first if the option is in object format to pass the
src
attribute, or if it is in string format to pass it as it is.something like that.
I forked the project and added some changes to apply this and it worked for me.
https://github.com/mena234/tailwindcss/tree/Fix-Css-Option-In-Object-Format-Error
Version
"@nuxtjs/tailwindcss": "^5.3.3",
"nuxt": "^2.15.8",
Reproduction Link
https://codesandbox.io/s/gallant-rosalind-hq6ft4
Steps to reproduce
1- Create a new nuxt2 project
2- Install @nuxt/tailwindcss package.
3- Add a global CSS file with object format in the nuxt.config.js file
What is Expected?
Working with CSS object format.
What is actually happening?
Gives an error "input.includes is not a function"
The text was updated successfully, but these errors were encountered: