Closed sbhtw closed 7 years ago
Is it that you've created a new node application and you want to use the qooxdoo-compiler API? In which case, you would npm install qxcompiler
and not install qx-cli
.
Can you elaborate on what you're trying to achieve? Im confused because you would only need the babel*
dependencies if you intend on interacting with babel directly, for example if you're writing your own babel plugin ... and if that was the case, I'm not sure that you'd want to write a babel plugin and use qxcompiler, much less qx-cli as a dependent module.
Sorry for being so light on details :-)
I have an existing qooxdoo application and switched from generate.py
to qx-cli
. It worked fine, until I had to rebuild the node_modules
folder (for some other reasons). Since then I get the error as described.
The other dependencies in package.json
are remains from some older experiments of using babel directly. I try to start from scratch and will report here again.
Ok, the error could be fixed by uninstalling all "babel*" dependencies (package.json
and node_modules
).
Don't know why they conflicted with qx-cli
/qxcompiler
.
Thanks!
Just a last comment:
thank you for you effort, @johnspackman. qx-compiler is great and the transition was almost effortless, which was very surprising to me. Worked almost "out-of-the-box".
Keep up the good work!
if you just want to use the compiler, you do not have to create a new node application - the qx-cli
is designed to work standalone. All you need to do is this:
npm install -g qx-cli
More details in the readme at https://github.com/qooxdoo/qooxdoo-cli
PS we have a chat room here in case that helps https://gitter.im/qooxdoo/qxcompiler
@johnspackman due to deployment reasons, I didn't want to install qx-cli
globally.
Don't know if it's rather an issue of
qx-cli
, but for now I post it here:When running a fresh
npm install
(without any existingnode_modules/
) with thispackage.json
:and then running
npm install --save-dev qx-cli
, resulting in the newpackage.json
:I get an error when running
./node_modules/.bin/qx compile
:Adding
babel-plugin-transform-es2015-template-literals
to the Dependencies of qooxdoo-compiler innode_modules/qxcompiler/package.json
(as a workaround) fixes this error, but then qx complains about the next missing module (seeClassFile.js
)