Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

YUIScriptProcessor is breaking my site on Publish.

Avatar

Avatar
Give Back
Level 1
Jeanmaradiaga
Level 1

Like

1 like

Total Posts

22 posts

Correct Reply

1 solution
Top badges earned
Give Back
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Give Back
Level 1
Jeanmaradiaga
Level 1

Like

1 like

Total Posts

22 posts

Correct Reply

1 solution
Top badges earned
Give Back
Validate 1
Boost 1
Affirm 1
View profile
Jeanmaradiaga
Level 1

19-05-2021

I have the YUI processor set to minify my JS on Publish and this is causing it to break, I know this because I don't have it on Author and the site works like a charm. I checked the logs and this is what I got:

 

19.05.2021 12:31:18.161 *ERROR* [0:0:0:0:0:0:0:1 [1621449074509] GET /content/whisl/en.html HTTP/1.1] com.adobe.granite.ui.clientlibs.impl.YUIScriptProcessor 
[ERROR] 19146:30867:unterminated string literal
19.05.2021 12:31:18.161 *ERROR* [0:0:0:0:0:0:0:1 [1621449074509] GET /content/whisl/en.html HTTP/1.1] com.adobe.granite.ui.clientlibs.impl.YUIScriptProcessor 
[ERROR] "use strict";function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}

 

 

I managed to track the error to a clientlib javascript file we use for forms called parsley.js but I am stumped on how to fix this. Do I need a polyfill to fix this? Something else perhaps? Any help would be appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 100
Level 10
asutosh_jena
Level 10

Likes

544 likes

Total Posts

663 posts

Correct Reply

190 solutions
Top badges earned
Give Back 100
Boost 500
Affirm 100
Ignite 1
Establish
View profile

Avatar
Give Back 100
Level 10
asutosh_jena
Level 10

Likes

544 likes

Total Posts

663 posts

Correct Reply

190 solutions
Top badges earned
Give Back 100
Boost 500
Affirm 100
Ignite 1
Establish
View profile
asutosh_jena
Level 10

19-05-2021

Answers (0)