![]() Unistalled node.js and node modules 3 times (trying something different everytime). ![]() Beta git: (dev) npm install mongoose -save npm WARN deprecated find-file0.1.4: Use the globby package instead > gifsicle0.1.7 postinstall /Users/e042481/Projects/Beta/nodemodules/gifsicle > node index.js path.js:7 throw new TypeError ('Path must be a string. And a Google didn't seem to get me anywhere. ![]() My_function(filepath, a, b, c) # This runs the function on that string variable and the other variables: a, b, c. the problem is that even using the -verbose and -debug, it doesnt show anything to work on the error, just 'path must be a string', i validated the file with JSLint (using brackets) and it works quite well, website also works fine. I'm running into this error when trying to install anything with npm install in this example, I was trying to install mongoose. So: # First define a function for "path", "a", "b" and "c"įilepath = "/Users/./filename.xlsx" # This defines a string variable that you can feed to your function So instead of defining the specific file you want to upload, you're supposed to write "path", and later, when using the function you replace "path" with your path. When creating a function, it's supposed to work for all cases. So to solve your code, change to: data <- read_xlsx("/Users/./filename.xlsx") In other words, you don't need that second line Read_xlsx(data) #<- So this line doesn't make sense, because you are trying to read an excel file, but the path of the excel file is what you already uploaded. I added some comments to your code to clarify the problem data <- read_xlsx("/Users/./filename.xlsx") # This is reading your file into a variable called "data" ![]() If looks like your id variable is an empty string, which isn’t a valid document ID to pass into doc(). Installing image min resultes in the error throw new TypeError(Path must be a string. Let's break it up into 2: 1) Using read_xlsx: Flutter firebase firestore: ‘path.isNotEmpty’: a document path must be a non-empty string) techinplanet staff. Okay, you've messed up the R "grammar" a bit. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |