We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rollup-plugin-postcss@4.0.0 rollup@1.32.1 next@10.0.7
postcss.config.js
module.exports = { plugins: ['tailwindcss', 'postcss-preset-env'], };
rollup.config.js
import peerDepsExternal from "rollup-plugin-peer-deps-external"; import commonjs from "@rollup/plugin-commonjs"; import typescript from "rollup-plugin-typescript2"; import postcss from "rollup-plugin-postcss"; import copy from "rollup-plugin-copy"; import image from "@rollup/plugin-image"; import resolve from 'rollup-plugin-node-resolve'; export default { input: "src/components/index.ts", output: [ { dir: "build", format: "cjs", sourcemap: false }, { dir: "build/esm", format: "esm", sourcemap: false } ], preserveModules: true, plugins: [ peerDepsExternal(), commonjs(), image(), resolve({ browser: true }), typescript({ useTsconfigDeclarationDir: true, "jsx": "react", }), postcss({ modules: true, inject: false, extract: true, config: { path: './postcss.config.js' } }), copy({ targets: [ { src: "src/styles/_variables.scss", dest: "build", rename: "variables.scss" }, { src: "src/components/package.json", dest: "build", rename: "package.json" } ] }) ] };
ERROR
[!] (plugin postcss) TypeError: Invalid PostCSS Plugin found at: plugins[0] (@/***/postcss.config.js) src/components/Badge/badgeComponent.module.scss TypeError: Invalid PostCSS Plugin found at: plugins[0]
To workaround this I just add require like so
require
module.exports = { plugins: [require('tailwindcss'), require('postcss-preset-env')], };
But this is not working for the nextjs - more info here
The text was updated successfully, but these errors were encountered:
No branches or pull requests
postcss.config.js
rollup.config.js
ERROR
To workaround this I just add
require
like soBut this is not working for the nextjs - more info here
The text was updated successfully, but these errors were encountered: