3daddict / themekit-webpack

(Legacy) Shopify Themekit with Webpack and TailwindCSS
MIT License
59 stars 10 forks source link

webpack-cli Failed to load config file #69

Open cameronsb opened 2 years ago

cameronsb commented 2 years ago

Node version: 14.19.1

Running on Ubuntu 20.04 in WSL2 (Windows 10). I don't think it's related to the OS setup, but you never know.

I've tried this with NPM as well as Yarn. In both cases, it seems that the Webpack CLI has an issue with how the Config files are set up.

This project looks awesome, and I'm bummed I was unable to get the webpack build working!


yarn start
yarn run v1.22.18
$ TAILWIND_MODE=watch webpack serve --mode=development --config webpack.dev.js
[webpack-cli] Failed to load '/home/cam/themekit-webpack/webpack.dev.js' config
[webpack-cli] Invalid options object. Mini CSS Extract Plugin has been initialized using an options object that does not match the API schema.
 - options.filename: A relative path is expected. However, the provided value "/assets/bundle.[name].css" is an absolute path!
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.