on 2022 May 23 1:44 PM
Hello,
Can't import project to SAP Business Application Studio anymore, it started from today, getting an exception:
name: TypeError message: The "path" argument must be of type string. Received undefined stack: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined at new NodeError (internal/errors.js:322:7) at validateString (internal/validators.js:124:11) at Object.join (path.js:1148:7) at t.ImportProject.getTargetFolder (/tmp/vscode-unpacked/vscode-wing-welcome-screen-1.1.1.vsix/extension/dist/extension.js:2:422894) at t.ImportProject.doUnzip (/tmp/vscode-unpacked/vscode-wing-welcome-screen-1.1.1.vsix/extension/dist/extension.js:2:421785) at t.ImportProject.import (/tmp/vscode-unpacked/vscode-wing-welcome-screen-1.1.1.vsix/extension/dist/extension.js:2:420749) at processTicksAndRejections (internal/process/task_queues.js:95:5) at async A (/tmp/vscode-unpacked/vscode-wing-welcome-screen-1.1.1.vsix/extension/dist/extension.js:2:513131) string: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
The same project was imported successfully before, so something happened at weekend.
I have found such warning when Workspace is created:
Problems loading reference 'vscode://schemas/workspaceConfig': Unable to load schema from 'vscode://schemas/workspaceConfig': A resource provider for 'vscode://schemas/workspaceConfig' is not registered.
So it is definitely related somehow to vscode!
Any ideas how it can be resolved?
Regards,
Oksana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi oksana.zubchenko,
I've recently created a new workspace and imported a project in zip format without any issues. Here is the repo I've downloaded as zip file and was imported into my BAS:
https://github.com/ivanmir/cpapp
See if you are able to import it the same way I did. If you are able to do so, then I suspect the error was related to some limitation on the file size you are trying to import. It could be that SAP has imposed an upload limit and that may "break" the file upload - causing the error: "The "path" argument must be of type string. Received undefined"
IMHO: Importing BAS projects works best via GIT instead whole projects. It does this job better because whole zipped projects may contain all dependencies and libraries (especially from node projects) - which makes them really huge to upload.
Whereas cloning a git repo usually uses a gitignore file to prevent such huge folders and files from being uploaded into the remote repository in the first place. Thus, you can safely import it into your BAS workspace without such issues.
Otherwise, could you please clarify which procedure are you using and which project files are you importing?
Best regards,
Ivan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ivan,
I have downloaded as a zip file from https://github.com/ivanmir/cpapp and tried to import to BAS - the same error as before "The "path" argument must be of type string. Received undefined stack: TypeError [ERR_INVALID_ARG_TYPE]" .
I have BAS in Trial account and something changed recently, so I can't import projects anymore.
Import from GIT is an option now.
Regards,
Oksana
Hi oksana.zubchenko,
I really don't understand why git is not an option as it is widely used for source control and software lifecycle.
Regardless of tool preference, I was able to import zip projects on both BAS accounts I have access to: trial and production.
What is the exact procedure you are taking to import the project in BAS?
I would also make sure the ZIP file is not corrupted from your PC.
Another way of uploading a zip project and extracting it into BAS is by placing the file on an FTP site and use linux command line tools to get and unzip the file like so:
# cd /home/user/projects
# curl -LO https://github.com/SAP-samples/btp-full-stack-typescript-app/archive/refs/heads/main.zip
# unzip main.zip
Once unzipped, you can go into the file menu and open that particular project (Open Workspace... CTRL+ALT+W)
Best regards,
Ivan
User | Count |
---|---|
70 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.