Closed peuter closed 4 months ago
@peuter also tried to install apiviewer package in my app and got the error for first time. But has it ever worked this way?
It's the only documented way of getting the apiviewer for your own apps that I am aware of and it used to work, I have used it quite a while without having problems.
I doubt that the provided fix solves this problem. It only solves the missing "parts" section, but as I already mentioned, after adding it manually there are still errors that break the apiviewer.
Also in addition to that I tried to reproduce the problem once again and now I am not able to compile the apiviewer:
TypeError: /home/.../myapp/node_modules/@qooxdoo/framework/source/class/qx/tool/compiler/targets/Target.js: Property left of ForInStatement expected node to be of a type ["VariableDeclaration","LVal"] but instead got undefined
qx.tool.compiler.targets.Target: error: FATAL Syntax error: /home/.../myapp/node_modules/@qooxdoo/framework/source/class/qx/tool/compiler/targets/Target.js: Property left of ForInStatement expected node to be of a type ["VariableDeclaration","LVal"] but instead got undefined
qx.tool.config.Utils: [200,34] warning: Unresolved use of symbol __dirname
qx.tool.utils.Website: [37,13] warning: Unresolved use of symbol loadSass
qx.tool.utils.files.Utils: [259,10] warning: Unresolved use of symbol process.platform
Writing application myapp
Cannot write application 'apiviewer' because it has fatal errors
I am not able to re-open this issue, so I can only leave a comment.
EDIT: This issue has already been reported here: https://github.com/qooxdoo/qooxdoo/issues/10621
@peuter thank you for feedback. But my fixes did. I remember 100% apiviewer worked just fine with them. Now I can not start without errors. I tried different branches, local compilation and still no success. Possibly other problem with api viewer or framework.
Fixed since qooxdoo version of 7.7.1
I created an empty qx application with the steps described in the documentation:
The compiling shows a lot of warnings and errors:
When I open the apiviewer in the browser it does not load, on the browser console I see the error:
Which points to this line:
l.parts[l.boot].forEach(function(pkg) {
andl.parts
is empty.Trying to fix that by adding parts to the config.json:
Just leads to new errors:
The first error is related to the default setting
"exclude": [ "qx.test.*",...
butqx.theme.simple
uses Mixins fromqx.test.
, which is generally a bad idea. The should not exist dependencies from any "real" code to anything in "qx.test".