Skip to content
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

write-file-queue\index.js:53:12。 [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined #216

Closed
MzhouNiuniu opened this issue Feb 28, 2023 · 1 comment

Comments

@MzhouNiuniu
Copy link

MzhouNiuniu commented Feb 28, 2023

run node examples/example.js

node:internal/fs/utils:675
throw new ERR_INVALID_ARG_TYPE(propName, ['string', 'Buffer', 'URL'], path);
^

TypeError[ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined
at Object.open (node:fs:561:10)
at Object.writeFile (node:fs:2185:6)
at C:\Users\lill\Desktop\zy\node-thermal-printer\node_modules.store\write-file-queue@0.0.1\node_modules\write-file-queue\index.js:53:12
at Immediate. (C:\Users\lill\Desktop\zy\node-thermal-printer\node_modules.store\dank-do-while@0.1.2\node_modules\dank-do-while\index.js:27:7)
at process.processImmediate (node:internal/timers:476:21) {
code: 'ERR_INVALID_ARG_TYPE'
}

@Klemen1337
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants