Skip to content

webpack-cli Failed to load config file #69

@cameronsb

Description

@cameronsb

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.

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