Replies: 2 comments 5 replies
-
Are you 100% sure the node and npm version are exactly the same on your desktop/laptop and the docker container?
|
Beta Was this translation helpful? Give feedback.
5 replies
-
Hi, thanks for the help. We think we've managed to get it to work, but the configuration for docker still seems a little different to that required outside of it, and as yet we haven't been able to work out why. Hopefully we can nail down what's causing the issue for us (if it isn't just somehow illusory) and I can write it up here in case anyone else encounters it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Bit of a niche question this, but has anyone encountered any node issues around jshint since upgrading to 3.0.1 and running the build inside docker?
For context: at the end of last year I wrote a gitlab CI script that built a fairly big Java play project (at that time version 2.8.21) inside a docker container using openJDK11 and ubuntu 22.04, which all worked well. This year I decided to upgrade to play 3.0.1 and openJDK21, it's all gone well and builds/runs perfectly on my laptop, desktop (both ubuntu 22.04, both openJDK21), but it now always fails in docker (set up with the same OS, java version, nodejs version etc.):
I've tried installing different versions of node, I've tried explicitly installing the missing module using npm, and though I can generate a different node error (like complaining that
[error] Error [ERR_REQUIRE_ESM]: require() of ES Module /root/yyy/node_modules/strip-json-comments/index.js from /root/yyy/project/target/jshint/jshint-shell.js not supported.
) I haven't been able to get past it.I can't work out what the problematic difference between my laptop, desktop, the previous docker version (all of which were running the bog standard nodejs and npm installations from apt) and this docker container environment could be. If anyone has any suggestions, or can see something I've stupidly overlooked, that would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions