Next.js Discord

Discord Forum

`bg-primary` is not a valid tailwind class

Answered
"use php" posted this in #help-forum
Open in Discord
I'm getting this error on monorepo. Scroll down to see screenshots

17 Replies

this is after making file
before, this just fixes and gives me all the warnings like no custom classes
@"use php" I'm getting this error on monorepo. Scroll down to see screenshots
even If I create eslint.config.js file with empty content
eslint . --fix
(make sure you have files to only src otherwise you may get huge chaos)
@riský `eslint . --fix`
Its not doing any fixes or giving warnings
with -debug
and its ignoring src folder
If I run the code from src folder, I get the same warning:
Oops! Something went wrong! :(

ESLint: 8.57.0

You are linting ".", but all of the files matching the glob pattern "." are ignored.

If you don't want to lint these files, remove the pattern "." from the list of arguments passed to ESLint.

If you do want to lint these files, try the following solutions:

* Check your .eslintignore file, or the eslintIgnore property in package.json, to ensure that the files are not configured to be ignored.
* Explicitly list the files from this glob that you'd like to lint on the command-line, rather than providing a glob as an argument.
My .eslintignore file is empty
And these errors go away if I delete the empty file, eslint.config.js
So keeping this on the side, I've another issue
I get this error on a monorepo
If I open the folder directly, it works, but not in monorepo
Answer