Skip to content

Error on build #1

@birchb

Description

@birchb

I'm attempting to use tailwindcss-card in a vue project. I followed the installations instructions but get this error on 'npm run dev':

Module build failed: TypeError: addComponents is not a function at /Users/birchbrowning/Development/tailwindtest/node_modules/tailwindcss-card/index.js:18:5

Here's my postcssrs.js:

`var tailwindcss = require("tailwindcss")

module.exports = {
plugins: [
// to edit target browsers: use "browserslist" field in package.json
tailwindcss("tailwind.js"),
require("tailwindcss-card")(),
require("autoprefixer")
]
}`

I considered that the posscssrc.js file was not being imported correcly somewhere, but if I comment out the tailwindcss-card line, the app builds correctly, but the stacked card is not styled correctly, of course.

I'd love to make this work, as this seems like the right way to add components to tailwind. Any suggetions? Do you need any additional information? I used this template to start: https://github.com/cesaramirez/popular-layouts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions