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

Error when run with error TypeError: Cannot read property 'includes' of undefined #112

Open
miixel2 opened this issue May 19, 2023 · 1 comment

Comments

@miixel2
Copy link

miixel2 commented May 19, 2023

Similar to #107 but error on another line of

if (node.nodes.some((item) => item.raws.before.includes('${'))) {

Command:

postcss src/tailwind.css -o src/tailwind.generated.css

Error I got:

TypeError: Cannot read property 'includes' of undefined
    at ...\src\tailwind.css:1:1
    at ...\src\tailwind.css:2:1
    at ...\node_modules\postcss-sorting\lib\isAllowedToProcess.js:18:49
    at Array.some (<anonymous>)
    at isAllowedToProcess (...\node_modules\postcss-sorting\lib\isAllowedToProcess.js:18:17)
    at sortNodeProperties (...\node_modules\postcss-sorting\lib\properties-order\sortNodeProperties.js:12:7)
    at ...\node_modules\postcss-sorting\index.js:52:4
    at ...\node_modules\postcss\lib\container.js:360:44
    at ...\node_modules\postcss\lib\container.js:55:18
    at Root.each (...\node_modules\postcss\lib\container.js:41:16)
    at Root.walk (...\node_modules\postcss\lib\container.js:52:17)
    at Proxy.<anonymous> (...\node_modules\postcss\lib\container.js:357:30) {
  postcssNode: <ref *1> Root {
    raws: { semicolon: false, after: '\n' },

My first three lines in tailwind.css

@tailwind base;
@tailwind components;
@tailwind utilities;
@hudochenkov
Copy link
Owner

I can't reproduce the issue.

What is your PostCSS config? What are the versions of all your related dependencies? Is there a custom syntax provided to PostCSS?

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

No branches or pull requests

2 participants