Skip to content

uncaught reference in 4.11 #1057

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
akhmerov opened this issue Mar 9, 2020 · 16 comments
Closed
1 task done

uncaught reference in 4.11 #1057

akhmerov opened this issue Mar 9, 2020 · 16 comments
Labels
bug confirmed as a bug priority : high

Comments

@akhmerov
Copy link

akhmerov commented Mar 9, 2020

Bug Report

When using the freshly released version 4.11 I observe that the library doesn't load and the problem seems to be on the docsify side.

image

Steps to reproduce

Use index.html like this one

What is current behaviour

docsify doesn't load

What is the expected behaviour

docsify loads :)

Other relevant information

  • Bug does still occur when all/other plugins are disabled?

  • Your OS: Ubuntu

  • Browser version: chrome Version 80.0.3987.132 (Official Build) (64-bit)

  • Docsify version: 4.11

  • Docsify plugins: docsify-katex (but the problem appears also without it).

@anikethsaha
Copy link
Member

ohh shoot !
Please use 4.10.2
I will fix it now . Something wrong with rollup config

@akhmerov
Copy link
Author

akhmerov commented Mar 9, 2020

Yeah, I pinned 4.10.2, sure, no problem.

@anikethsaha anikethsaha added bug confirmed as a bug priority : high labels Mar 9, 2020
@vardaro
Copy link

vardaro commented Mar 9, 2020

Wow you guys are fast!

@anikethsaha
Copy link
Member

if anyone can help with this rollup issue .

image

Thanks

@slikts
Copy link

slikts commented Mar 9, 2020

There shouldn't be untested releases; the default setup doesn't pin the version, so every site that uses it is now broken. It's also why the default template should include a fallback link.

Pinned location: //unpkg.com/docsify@4.10.2/lib/docsify.min.js

@anikethsaha
Copy link
Member

released v4.11.1
Please confirm if there are any issues or not

@xuqingkuang
Copy link

if anyone can help with this rollup issue .

image

Thanks

Try to execute npm ls css.escape, to make sure the css.escape is installed?

I tested to build the docsify, the css.escape was built correctly.

@slikts
Copy link

slikts commented Mar 9, 2020

v4.11.1 appears to work, thanks for the fix, but please add automated testing to the process.

@anikethsaha
Copy link
Member

v4.11.1 appears to work, thanks for the fix, but please add automated testing to the process.

We do have some e2e tests but they are not so strong and not many!
I am not so into testing so I couldn't able to write strong tests.
So I request community to help with strong tests!

@anikethsaha
Copy link
Member

Closing as its been fix.
Please open new issue if any other issue is there

@jeffin143
Copy link

v4.11.1 appears to work, thanks for the fix, but please add automated testing to the process.

We do have some e2e tests but they are not so strong and not many!
I am not so into testing so I couldn't able to write strong tests.
So I request community to help with strong tests!

I will be there from next weekend to help :)

Great work anyways

@anikethsaha
Copy link
Member

v4.11.1 appears to work, thanks for the fix, but please add automated testing to the process.

We do have some e2e tests but they are not so strong and not many!
I am not so into testing so I couldn't able to write strong tests.
So I request community to help with strong tests!

I will be there from next weekend to help :)

Great work anyways

🎉

Thanks

@trusktr
Copy link
Member

trusktr commented Jun 7, 2020

Just FYI the new unit tests in #1189 should catch any instance of the script not loading.

@anikethsaha
Copy link
Member

will it catch while running in development mode ? cause this issue occurred after running the build and ignoring the warning of rollup.

@trusktr
Copy link
Member

trusktr commented Jun 7, 2020

Oh wait, actually the test script currently tests whatever build you last made. I will update test to test specifically the prod build.

EDIT: Oh wait, pull request #1189 does already test the production script. I added comments to the PR to explain it.

@anikethsaha
Copy link
Member

Oh wait, actually the test script currently tests whatever build you last made. I will update test to test specifically the prod build.

Post build tests ? worth it though, may be in a separate PR ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug confirmed as a bug priority : high
Projects
None yet
Development

No branches or pull requests

7 participants