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

Cannot read properties of undefined (reading 'push') on clean-css/lib/tokenizer/tokenize.js:434:17 #1227

Open
Sherry-Lee opened this issue Jul 21, 2022 · 3 comments

Comments

@Sherry-Lee
Copy link

Sherry-Lee commented Jul 21, 2022

Issue Description

When using the version 5.3.1 of clean-css combined with version > 11.1.34 of @ @sap-theming/theming-base-content.

Environment

  • clean-css version - npm ls clean-css: 5.3.1
  • @sap-theming/theming-base-content version: 11.1.40
  • node.js version - node -v: v16.14.1
  • operating system: MacOS Monterey version 12.4

Error

[exec] -- PLUGIN_ERROR-angular --
[exec] TypeError: Cannot read properties of undefined (reading 'push')
[exec] at intoTokens (/node_modules/clean-css/lib/tokenizer/tokenize.js:311:17)
Screen Shot 2022-07-21 at 17 44 42

@jakubpawlowicz
Copy link
Collaborator

Hey @Sherry-Lee - any chance to share a piece of CSS that causes it?

@droshev
Copy link

droshev commented Apr 5, 2023

@Sherry-Lee you are running it against files from theming-base-content. You should just import them instead.

@khaxan
Copy link

khaxan commented Oct 19, 2023

I was facing the same issue but it turns out I had HTML in my CSS.

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

No branches or pull requests

4 participants