Closed JuanVqz closed 3 years ago
Looks like the webpack.config.js
here is somehow outdated. When I copy postcss-loader
into the original, I still have an error :( Unfortunately, I don't have the necessary knowledge to fix it...
{
test: /\.(s[ac]|c)ss$/,
use: [
MiniCssExtractPlugin.loader,
"css-loader",
{
loader: "postcss-loader"
},
{
loader: "sass-loader",
options: {
sassOptions: {
includePaths: [
path.resolve(__dirname, "src/_components"),
path.resolve(__dirname, "src/_includes")
]
}
}
},
],
},
error
[Webpack] ERROR in ./frontend/styles/index.scss
[Webpack] Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
[Webpack] ModuleBuildError: Module build failed (from ./node_modules/postcss-loader/dist/cjs.js):
[Webpack] TypeError: this.getOptions is not a function
[Webpack] at Object.loader (/Users/Petr/Code/other/static/test/node_modules/postcss-loader/dist/index.js:38:24)
[Webpack] at /Users/Petr/Code/other/static/test/node_modules/webpack/lib/NormalModule.js:316:20
[Webpack] at /Users/Petr/Code/other/static/test/node_modules/loader-runner/lib/LoaderRunner.js:367:11
[Webpack] at /Users/Petr/Code/other/static/test/node_modules/loader-runner/lib/LoaderRunner.js:233:18
[Webpack] @ ./frontend/javascript/index.js 1:0-20
no worries, I'm going to close this issue. thank you!
@JuanVqz did you solve it or lost interest? 🙂
postcss-loader
in the latest version (5.X.X) requires a newer Webpack. I switched to 4.2.0
and it works.
@CiTroNaK I did the same!!!
Hey sorry guys I totally missed this I'm so sorry! My GH notifications are a mess! Glad you guys managed to get this solved!
I tried a new project command.
bridgetown new <newsite> --apply="https://github.com/ParamagicDev/bridgetown-automation-tailwindcss"
Bridgetown v0.19.1 (codename "Arbor Lodge")
ruby 2.7.2