#404 error

19 messages · Page 1 of 1 (latest)

north fern
#

are you using the /pages directory or the /app directory? choose one...

edgy valve
north fern
#

yes thats because ure using /app directory

#

which mean you have to go witht he convention of using App Directories

#

which mean that you can't use _app.js

edgy valve
#

ahh thx

north fern
#

_app.js belongs to the "Pages Directory" on /src/pages folder

edgy valve
#

the module is installed

north fern
edgy valve
north fern
#

do you have tailwind.config.js

#

did u use the nextjs tailwind preset

#

or did you follow taildind installation on nextjs

#

also

#

try reloading npm run dev

edgy valve
#
/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    './src/pages/**/*.{js,ts,jsx,tsx,mdx}',
    './src/components/**/*.{js,ts,jsx,tsx,mdx}',
    './src/app/**/*.{js,ts,jsx,tsx,mdx}',
  ],
  theme: {
    extend: {
      backgroundImage: {
        'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
        'gradient-conic':
          'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
      },
    },
  },
  plugins: [require("daisyui")],
}

north fern