-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Handlebars.compile error since version 0.28.0 #967
Comments
Same here:
|
@0skSG could you have a look? Probably linked to your PR, no? |
I have the same problem Version of apidoc: 0.28.0 |
In fact it could be ralated. I cannot discard that option. |
same issue here, had to downgrade to the previous version. |
Hello, I've been investigating a bit more on that. |
Fixed in 0.28.1. |
Seems like this issue PR caused another issue. Now I am getting
Should be replaced to |
not fixed in 0.28.1 |
@prashant93 this issue is with your CSP policy, no? Nothing to do with the lib. |
Thanks @NicolasCARPi |
@NicolasCARPi why not add handlebars ^4.7.7 to package JSON as a dependency? I do not use apidocs global install, I have added to my package.json
and
and I still have this error with
when I do
I guess apidocs load some not compatible handlebars version from somewhere? |
What do you mean? It's there already! And yes it's loading it from the This is something I want to fix: load stuff from node_modules with a webpack step. But I did not write this software, I'm just dedicating some time to it because it was almost abandoned at some point, fortunately the owner gave me some access to try and help. So there is a lot of technical debt that accumulated and it requires a significant amount of work to bring it to today's web standards. As for the missing helper thing, a new patch should come out, because the current latest version on npm has this bug, but not the version from master. |
@NicolasCARPi ahh, thank you very much, I was about to try oh you tagged upd: just tested and it works. now I can finish documenting my new microservice for the company. this package really used and has a lot of stars. bring more maintainers on board if you feel like you need help. :) |
@seyfer, well this is exactly why I proposed my help to @rottmann. I saw he needed help with issue triage, merging PR and fixing bugs. But you know, finding someone that will actually help with the project is easiest said than done. Most people are happy to propose their help but when it comes to actually doing something it ends up with "sorry I didn't have time but I'll have some next week". Everyone can make PRs and comment on issues. Some of the big issues with this project:
Some of the big advantages of this project:
Anyway, I'm here to fix the leaks and do basic maintainance. Maybe at some point I'll give this project a good whip, but with @rottmann we discussed about starting from scratch, which could be the death or rebirth of this project, hard to say, sometimes planning a complete rewrite is a bad idea, sometimes it is good. I'm all for a rewrite, but one has to consider the scope of such a project, it's far from being trivial. So in the end, maybe fixing what exists might be better... Maybe I'll start by deprecating apidoc-core and importing the parser in this repo... @rottmann what do you think about such a change? It's never too late to revert a bad decision! |
Describe the bug
Cannot open the doc if compiled with apidoc 0.28.0
Steps to reproduce
1 - compile doc with apidoc 0.28.0
2 - try to open the doc with firefox or chrome, in the browser devtool you will see the error : "TypeError: Handlebars.compile is not a function"
Information
The text was updated successfully, but these errors were encountered: