-
Notifications
You must be signed in to change notification settings - Fork 58
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
[Question] Build from Sources failed due to dependancy error #193
Comments
Hi @akei1984 To fix the issue please update your node version. As it is mentioned in the error details that you sent you have node 16.15.1, but >=18 is required. You may install new node version using for example nvm (Node Version Manager) with the following commands. Use nvm to install Node.js version 18.19.0: Verify the installation: Set the installed version as the default: See the list of installed versions: Hope this helps. |
Hi @deaflynx thank you for the fast response. if i understood the Projectstructure correctly the NodeJs version is definied in the pom.xml via a maven plugin.
Causing my build to fail. |
It is hard to say at this moment what is the cause of this error, need more time to debug. |
Hi @akei1984, I still could not understand the root cause, but I think I have a fix. You are right that it fails because the index is -1 (it should be equal to 7) as it can not find such plugin by instance of Please try to replace the following line to find by the Please note that in the next releases we will use custom-esbuild instead of webpack. |
Hi @deaflynx Thank you for your support. i just did some testing again and it seams i can replicate the issue now that is happening.
This is happening as mvn clean is not removing the node_modules/ and .angular files by default i created a small PR that includes a maven plugin to drop these files automatically to prevent such wired behavior in the future. https://github.com/akei1984/tbmq/tree/improved-mvn-clean-for-nodemodules However the build fails now but consistently :) |
Hi @akei1984, Thank you for your efforts in this issue, detailed explanation and proposed solution. We will review your PR and discuss it further usage with the team. |
This issue has been marked as stale due to 7 days of inactivity. If no further activity occurs within the next day, it will be automatically closed. |
This is still in progress. |
Hi @akei1984, Unfortunately, I could not understand the root cause of this error and why it fails to find the plugin. The only fix that worked for me when this error occurred was changing the following line in |
Describe the bug
I tried to build tbmq from sources using the Main and the 2.0.1 release branch using
mvn -T 0.8C clean install -DskipTests
But currently my build seams to fail with an incompatible dependancy.
Changing the Build Options to ignore the node-Engine (for now)
<configuration> <arguments>install --ignore-engines</arguments> </configuration>
Gets past the first error but running but in to the next one as
As the build process seams to. fail loading the additonal Angular Plugins:
(index -1)
Your Server Environment
My guess is that some Angular Versions are mixed in the packages.json but really not sure about that.
Any idea how to proceed?
The text was updated successfully, but these errors were encountered: