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
Compilation failed!
Failed to inspect file
node_modules/highlight.js/lib/languages/isbl.js
it was required from
node_modules/highlight.js/lib/index.js
Errors encountered while trying to parse file
node_modules/highlight.js/lib/languages/isbl.js
{:line 1, :column 1, :message "The file could not be parsed as JavaScript."}
RuntimeException: Exception parsing "node_modules/highlight.js/lib/languages/isbl.js"
I guess like #1110 this is a Google Closure issue?
The text was updated successfully, but these errors were encountered:
highlight.js has been problematic for a while, there are a couple other issues regarding that. It is not #1110.
Luckily this is easily worked arround since that file is unlikely to be used anyways. If you control where/how highlight.js is used I recommend rewriting your requires to only include what you actually need.
Unfortunately it is being consumed by an npm dep but I think I figured out a way to squash the error by injecting an empty JS module into that one file during post-install. Thanks!
You can do :js-options {:resolve {"highlight.js" {:target :npm :require "highlight.js/lib/core"}}} in the build config and then add the additional stuff you actually need by requiring it yourself. That should also address the problem.
Source here: https://github.com/highlightjs/highlight.js/blob/main/src/languages/isbl.js
I guess like #1110 this is a Google Closure issue?
The text was updated successfully, but these errors were encountered: