Skip to content

Instantly share code, notes, and snippets.

@samebchase
Last active January 29, 2024 10:29
Show Gist options
  • Save samebchase/9c649507186c86b0860080bfba33d134 to your computer and use it in GitHub Desktop.
Save samebchase/9c649507186c86b0860080bfba33d134 to your computer and use it in GitHub Desktop.
Installing tailwind

Issue

I am trying to get started with Phoenix, and when I follow the steps, I get this error:

Error after using OpenBSD tailwind binary

samuel@carolyn ~/p/f/funemployment> mix assets.build

Rebuilding...
Error: Cannot find module '@tailwindcss/forms'
Require stack:
- /home/samuel/projects/funemployment/funemployment/assets/tailwind.config.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
    at Function.resolve (node:internal/modules/cjs/helpers:125:19)
    at _resolve (/usr/local/lib/node_modules/tailwindcss/node_modules/jiti/dist/jiti.js:1:251148)
    at jiti (/usr/local/lib/node_modules/tailwindcss/node_modules/jiti/dist/jiti.js:1:253746)
    at /home/samuel/projects/funemployment/funemployment/assets/tailwind.config.js:22:5
    at evalModule (/usr/local/lib/node_modules/tailwindcss/node_modules/jiti/dist/jiti.js:1:256443)
    at jiti (/usr/local/lib/node_modules/tailwindcss/node_modules/jiti/dist/jiti.js:1:254371)
    at /usr/local/lib/node_modules/tailwindcss/lib/lib/load-config.js:37:30
    at loadConfig (/usr/local/lib/node_modules/tailwindcss/lib/lib/load-config.js:39:6)
    at Object.loadConfig (/usr/local/lib/node_modules/tailwindcss/lib/cli/build/plugin.js:135:49) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/samuel/projects/funemployment/funemployment/assets/tailwind.config.js'
  ]
}
** (Mix) `mix tailwind default` exited with 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment