#Can't import CSS in app directory

7 messages · Page 1 of 1 (latest)

pallid token
#

Just importing my tailwind global.css file and getting this error:

wait  - compiling /(main)/streaming/page (client and server)...
error - ./src/styles/globals.css
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
> @tailwind base;
| @tailwind components;
| @tailwind utilities;
#

import '../styles/globals.css';``` this is what my root layout.tsx file looks like
mortal kraken
#

make sure in your tailwind.config.js file

#
/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    "./pages/**/*.{js,ts,jsx,tsx}",
    "./app/**/*.{js,ts,jsx,tsx}",
    "./components/**/*.{js,ts,jsx,tsx}",
  ],
#

you have the /app in ur content

#

this may be ur issue

pallid token
#

hmm I removed the old next-transpile-modules and that seems to have fixed it