skeletonlabs / create-skeleton-app

CLI installer for Skeleton apps and monorepo for the sites that form the templates
16 stars 5 forks source link

Tailwind dependencies are not installed when using pnpm instead of npm #33

Closed Immortalin closed 1 year ago

Immortalin commented 1 year ago

When pnpm create skeleton-app@latest my-skeleton-app with all options checked and skeleton welcome template selected, tailwind dependencies are not added to the repo. This error does not occur when using npm.

operating system: Ubuntu Linux 22.04 LTS node version: 20.1

        "devDependencies": {
                "@floating-ui/dom": "^1.2.8",
                "@playwright/test": "^1.28.1",
                "@skeletonlabs/skeleton": "^1.6.2",
                "@sveltejs/adapter-auto": "^2.0.0",
                "@sveltejs/kit": "^1.5.0",
                "@typescript-eslint/eslint-plugin": "^5.45.0",
                "@typescript-eslint/parser": "^5.45.0",
                "autoprefixer": "^10.4.14",
                "eslint": "^8.28.0",
                "eslint-config-prettier": "^8.5.0",
                "eslint-plugin-svelte": "^2.26.0",
                "postcss": "^8.4.23",
                "prettier": "^2.8.0",
                "prettier-plugin-svelte": "^2.8.1",
                "svelte": "^3.54.0",
                "svelte-check": "^3.0.1",
                "tailwindcss": "^3.3.2",
                "tslib": "^2.4.1",
                "typescript": "^5.0.0",
                "vite": "^4.3.0",
                "vitest": "^0.25.3"
        },

Error:

node:internal/process/promises:289
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[Failed to load PostCSS config: Failed to load PostCSS config (searchPath: /home/user/Development/Projects/project): [Error] Loading PostCSS Plugin failed: Cannot find module 'tailwindcss'
Require stack:
- /home/user/Development/Projects/project/postcss.config.cjs
niktek commented 1 year ago

Fixed, thanks for the report.