-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
error "The path argument must be of type string. Received null." when trying to build plugin or create new plugin since nativescript-cli 7.x #5387
Comments
It seems that the plugin is built (or created) as expected, as I can run the demo app and use the plugin's functionalities correctly. The message
confused me, I was thinking that the plugin was not built at all, but that seems to work. I also tried installing the latest NodeJS (v14.11.0) but that error message still appears. |
I also encountered a similar error message "The 'path' argument must be of type string. Received undefined" when I tried to run 'ns migrate' on my project. The prior message was 'Migrating project to use nativescript.config.ts'. |
Same with cli version 7.0.10. I can't create a project . It display the same error : And it is not even creating a single file for the project. |
I am also running into this with 7.0.10 when running tns plugin build. It is also complaining about the use of nsconfig.json but there is no nsconfig.json in the plugin project
|
when i run this command tns create my-blank-react --template tns-template-blank-react |
The commit above fixes the For those having issues with |
The "path" argument must be of type string. Received undefined |
For me the issue appeared when suddenly I see an entry like so the in the
Manually removed it, didn't run anything else, then the |
Environment
Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):CLI: 7.0.8
Cross-platform modules: -
Android Runtime: -
iOS Runtime: -
Plugin(s): -
Just in case this is important to know:
- Node: 12.18.1
Describe the bug
When I go to the src folder of my plugin and try to run
npm run build
, the process fails with the following error message:The "path" argument must be of type string. Received undefined.
When I try to create a new plugin using
tns create plugin myplugin
, I get a similar error message:The "path" argument must be of type string. Received null.
Full log:
When I try to build this plugin, I get the same error message as for my already existing plugin.
To Reproduce
see description
Expected behavior
Creating a new plugin should not throw this error.
Building an existing plugin should not throw this error.
Sample project
Additional context
The text was updated successfully, but these errors were encountered: