-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with Next.js 14 (typescript, eslint) #18
Comments
This is not related to Next.js. You can simply make a // @ts-check
const foo = require("@catppuccin/tailwindcss");
foo({}); // TS error
foo.default({}); // TS is happy to reproduce the error. From a quick glance, the cause seems to be that What you can do right now while waiting for this bug to be patched: use // tailwind.config.ts
import type { Config } from "tailwindcss";
import tailwindForms from "@tailwindcss/forms";
import catppuccin from "@catppuccin/tailwindcss";
const config: Config = {
content: ['./app/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,tsx}', '.css/**/*.css'],
theme: {},
safelist: [
// this is for demonstration purposes only, not required for basic usage
{
pattern: /bg-.+/,
},
],
plugins: [
tailwindForms,
catppuccin({
prefix: 'one',
defaultFlavour: 'mocha',
}),
],
};
export default config; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As you can see in the screenshot, I get an error when adding prefix & defaultFlavour to the tailwind config:
Type error: This expression is not callable.
Type 'typeof import("/opt/repos/projects/portfolio/node_modules/.pnpm/@catppuccin[email protected][email protected]/node_modules/@catppuccin/tailwindcss/dist/index")' has no call signatures.
When removing the prefix & defaultFlavour, it works..
The text was updated successfully, but these errors were encountered: