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

edge.func is not a function #32

Open
jazzmn opened this issue Mar 4, 2020 · 2 comments
Open

edge.func is not a function #32

jazzmn opened this issue Mar 4, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@jazzmn
Copy link

jazzmn commented Mar 4, 2020

Description
When using this module with edge-js I get an Uncaught TypeError: edge.func is not a function
It occurs on all function calls to printer.
The edge-js package seems to work correctly, I could execute their examples.

To Reproduce
I did the following steps

  1. npm i edge-js
  2. npm install node-native-printer --save
  3. Which package do you want to use? edge-cs
  4. start node
  5. const printer = require('node-native-printer');
  6. printer.listPrinters()
    and then I got:
    Uncaught TypeError: edge.func is not a function
    at WinPrinter.listPrinters (C:\Users\tobia\Documents\Devel\tmp\printe\node_modules\node-native-printer\src\windows_printer.js:20:19)

Expected behavior
I didn't get node-native-printer to work at all

OS

  • Windows 10
  • Nodejs v12.16.1.
@jazzmn jazzmn added the bug Something isn't working label Mar 4, 2020
@Allyday
Copy link

Allyday commented Mar 18, 2020

@jazzmn You can try using edge-js instead of edge-cs when prompted, at step 3, see if it helps

@felipe-gustavo
Copy link

@jazzmn, maybe when you install the package, him don't show to you the option edge-js, just select to write the dependence, and type edge-js, this already happened with me, and I solved with that method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants