You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Did not expect successive traversals.
at ensureNotTraversal (C:\Lab\Void\projects\mosaico\node_modules\css-what\lib\commonjs\parse.js:137:19)
at addTraversal (C:\Lab\Void\projects\mosaico\node_modules\css-what\lib\commonjs\parse.js:146:9)
at parseSelector (C:\Lab\Void\projects\mosaico\node_modules\css-what\lib\commonjs\parse.js:204:17)
at parse (C:\Lab\Void\projects\mosaico\node_modules\css-what\lib\commonjs\parse.js:83:20)
at Object.select (C:\Lab\Void\projects\mosaico\node_modules\cheerio-select\lib\index.js:191:65)
at LoadedCheerio.find (C:\Lab\Void\projects\mosaico\node_modules\cheerio\lib\api\traversing.js:55:30)
at LoadedCheerio.Cheerio (C:\Lab\Void\projects\mosaico\node_modules\cheerio\lib\cheerio.js:82:30)
at new LoadedCheerio (C:\Lab\Void\projects\mosaico\node_modules\cheerio\lib\load.js:32:46)
at initialize (C:\Lab\Void\projects\mosaico\node_modules\cheerio\lib\load.js:38:16)
at Object.<anonymous> (C:\Lab\Void\projects\mosaico\spec\converter-spec.js:48:15)
0.4.0 and 1.0.0-rc.1 to 1.0.0-rc.5 works fine.
I guess the problem is with the updated css-what dependency, but I don't understand why an html including only 2 comments should rise an exception in a css selector library.
The text was updated successfully, but these errors were encountered:
I can also confirm that 1.0.0-rc.5 with forced css-what 6.1.0 version works fine, so the issue is probably in cheerio (or another intermediate dependency, like cheerio-select) and not css-what.
bago
added a commit
to voidlabs/mosaico
that referenced
this issue
Apr 28, 2022
Since 1.0.0-rc.6 cheerio give me fatal exception while dealing with fragments having comments:
0.4.0 and 1.0.0-rc.1 to 1.0.0-rc.5 works fine.
I guess the problem is with the updated css-what dependency, but I don't understand why an html including only 2 comments should rise an exception in a css selector library.
The text was updated successfully, but these errors were encountered: