Skip to content
New issue

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

fix: do not return the userConfigPath if its null #4773

Merged
merged 1 commit into from Jun 23, 2021

Conversation

schelmo
Copy link
Contributor

@schelmo schelmo commented Jun 23, 2021

This prevents adding a null config path to the postcss dependencies.
It happens when you use a config object instead of a config file with watch in jit mode with postcss-cli.

// postcss.config.js
module.exports = {
  plugins: [
    require('tailwindcss')({
      mode: 'jit', 
      purge: ['./src/**/*'],
      theme: {/**/}
    })
  ]
}
TAILWIND_MODE=watch yarn postcss --watch ./src/css/* --dir ./public/css/

->
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received null

@adamwathan adamwathan merged commit 973d53d into tailwindlabs:master Jun 23, 2021
@adamwathan
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants