-
Notifications
You must be signed in to change notification settings - Fork 37
katex=0.8.1 cannot be loaded with error "unexpected token import" #16
Comments
I have the same problem, it worked until very recently.
Starting up the server fails because
I am using the latest version of everything:
The main katex package the plugin depends on was updated two days ago. I see that the plugin's "dependencies": {
"katex": ">=0.5.1"
} This should be locked down to the latest known stable version. |
@SamyPesse PR #18 fixes this, I've been using it locally through It would be great to get this merged in soon as this issue breaks all builds that use katex. |
👍 Thanks! I was literally looking up the documentation for @AaronO I see that you did not merge my commit that included the package version bump. Please publish a new version of the package on npm so we can actually use it. |
@cimi Publishing a new release in ~10mn. I started reviewing your PR, but it included a lot of unnecessary (some bad) changes (like changing the README, repo URL, version), the only change required was locking It's usually a considered a bad practice to bump as part of a pull request (because it's trivial for the maintainer to bump a new version once it's on the In general pull requests should be focused on solving a single well defined problem and avoid modifying extra files (makes it longer to review and harder to merge). So as a general measure, the smaller the PR the better :) (Just some friendly advice for next time, I appreciate you taking the time to actually submit a PR :D) |
@cimi Voilà, a |
Those changes should not have been part of the PR - I didn't realise github automatically includes all future commits on the originating branch in the pull request. The changes in the second commit (README, name, repo etc.) were done because I was going to publish Thank you for resolving! 🎉 |
with katex=0.8.1, plugin load will fail, complain as below
debug: readme found at README.md
debug: summary file found at SUMMARY.md
debug: cleanup folder "C:\Users\zsli\AppData\Local\Temp\tmp-10564ld8oP2BXSmdZ"
info: 10 plugins are installed
info: 8 explicitly listed
info: loading plugin "katex"... ERROR
PluginError: Error with plugin "katex": Unexpected token import
The text was updated successfully, but these errors were encountered: