Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » PNPM - The "from" argument must be of type string
PNPM - The "from" argument must be of type string [message #1831757] Fri, 28 August 2020 04:37 Go to next message
Eclipse UserFriend
Good day,

I have performed the upgrade steps using the migration tool and documentation for a project that was originally written using Eclipse Scout 9.

I have made the ui.html to use pnpm because when I perform a Maven build the PNPM step complains that another package manager installed dependencies and it cannot move them.

The issue is that when I do successive builds I receive the error below. What I need to do then is delete the dependencies in the node_modules (which takes some time) and then reattempt the build.

I am using maven_rt_plugin_config-master version 3.10.0 because the prior version gave various other issues and it seems that version 3.11.x is meant for the upcoming Eclipse Scout 11.

I have tried running the build command in elevated mode on Windows 10 but that does not resolve the issue either and I am using Maven 3.6.3 with OpenJDK 11.0.7

[INFO] --- exec-maven-plugin:1.6.0:exec (pnpm-update) @ ****.ui.html ---
ERRORΓÇë The "from" argument must be of type string. Received type undefined
at validateString             internal/validators.js:112
at relative                   path.js:437
at checkCompatibility [as d…  target/node/node_modules/pnpm/lib/node_modules/supi/lib/getContext/checkCompatibility/index.js:12  if (path.relative(module…
at                            target/node/node_modules/pnpm/lib/node_modules/supi/lib/getContext/index.js:133                    checkCompatibility_1.def…
at map
at validateNodeModules        target/node/node_modules/pnpm/lib/node_modules/supi/lib/getContext/index.js:131                    await Promise.all(import…
at getContext [as default]    target/node/node_modules/pnpm/lib/node_modules/supi/lib/getContext/index.js:17                     await validateNodeModule…
at processTicksAndRejections  internal/process/task_queues.js:93
at async mutateModules        target/node/node_modules/pnpm/lib/node_modules/supi/lib/install/index.js:62                        const ctx = await getCon…
at install                    target/node/node_modules/pnpm/lib/node_modules/supi/lib/install/index.js:42                        const importers = await …
[ERROR] Command execution failed.



Thank you very much for your assistance.

Kind regrds,
Mark Ashworth
Re: PNPM - The "from" argument must be of type string [message #1831758 is a reply to message #1831757] Fri, 28 August 2020 04:49 Go to previous messageGo to next message
Eclipse UserFriend
Hi Mark

I can't comment on that particular error as I haven't encountered it myself yet. But regarding the maven_rt_plugin_config-master: You can use the current release 3.12.7 with Scout 10. And if possible I would use the latest Scout RT version 10.0.30.
Re: PNPM - The "from" argument must be of type string [message #1831824 is a reply to message #1831758] Mon, 31 August 2020 04:56 Go to previous message
Eclipse UserFriend
Hi Arthur,

I made the changes as suggested but then I got the following Antrun error:-

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (check-npm-install-workspace) on project management.ui.html: An Ant BuildException has occured: Could not create C:\SDE\Code\Scout\...\management\management\pom.xml\target\npm_update.marker
[ERROR] around Ant part ...<touch file="C:\SDE\Code\Scout\...\management\management.ui.html\../management/pom.xml\target\npm_update.marker" mkdirs="true"/>... @ 6:142 in C:\SDE\Code\Scout\...\management\management.ui.html\target\antrun\build-main.xml: The system cannot find the path specified


I had a look at the contacts project in the Github repository for Eclipse Scout documentation and I noticed that the Maven projects do not specify the pom.xml when referring to the parent project.

I updated the projects and it seems to be working now.


Thank you very much for your assistance :-)

Previous Topic:Add Number on Menu ( for notification pupose )
Next Topic:Where locate static file?
Goto Forum:
  


Current Time: Thu Jul 10 06:14:12 EDT 2025

Powered by FUDForum. Page generated in 0.06102 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top