Reputation: 5907
I create my custom theme, build it and everything goes right. But When I copy the default theme files (css, js, images etc) to my custom-theme src and deploy it, some error shows up:
events.js:174
throw er; // Unhandled 'error' event
^
Error: missing '{' near line 1:24577
at error (C:\Users\DanielKęska\web\themes\sym-theme\node_modules\liferay-css-parse\index.js:69:15)
at declarations (C:\Users\DanielKęska\web\themes\sym-theme\node_modules\liferay-css-parse\index.js:225:25)
...there is much more of it :( Thanks for help!
Upvotes: 0
Views: 563
Reputation: 101
Late answer, but here it goes anyway: You probably copied the built css files (like main.css) too. These are created when building the theme and should not be present in the src folder.
Upvotes: 0
Reputation: 3698
2 things here, you normally do not copy from the classic theme or from any theme that you can declare as a parent.
When you build your theme, the building tool will include the files for you. If the parent is another theme and you are copying from a theme that is not the parent, that aggravates the problem, as you cannot expect the JS or even CSS files to be compatible. The templates can use different classes, the JS can have different dependencies or logic that is completely not related... it is a mess.
Judging by the node_modules\liferay-css-parse
directory in your path, you got yourself a parsing error when building the theme. That is different from what is suggested on the comments, as it is not a runtime issue.
So, basically you have a procedure problem: do not directly copy files, and do not mix: if the parent is a theme, and you copy from another theme, the expectation is a broken result. You can override though.
Upvotes: 1