better-docs icon indicating copy to clipboard operation
better-docs copied to clipboard

Error 404 - entry.js not generated when not using @component

Open TheoGoudout opened this issue 5 years ago • 3 comments

I am using better-docs and it is doing a great job. I've noticed that my documentation is missing the build/entry.js file since I am not using any @component tags in my code. It is really not a big deal, but it gives a 404.

After checking the code, I saw that bundle.js generates the entry.js file that is then installed in the build folder ONLY if there are any components. My really simple workaround is to generate an empty build/entry.js file. I believe it should be generated by better-docs, or the HTML page template should add this script requirement conditionally.

TheoGoudout avatar Jan 13 '21 10:01 TheoGoudout

Thanks for opening this issue @TheoGoudout, this is affecting me too. Offending line in the template is https://github.com/SoftwareBrothers/better-docs/blob/master/tmpl/head.tmpl#L12

nicgordon avatar Apr 06 '21 07:04 nicgordon

I have the same problem

massimiliamanto74 avatar Sep 30 '21 15:09 massimiliamanto74

Hi, Any updates ?

EliseCabrerizo avatar May 18 '22 13:05 EliseCabrerizo