while bundling the javascript code, the serialport import is not getting resolved #2586
Unanswered
karanwilson
asked this question in
Q&A
Replies: 1 comment
-
I'm sorry; I wasn't aware that Serial Port cannot be used in a browser app. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While bundling the javascript code with 'bench build' in frappe framework (uses yarn and rollup), the serialport import is not getting resolved:-
UNRESOLVED_IMPORT : 'stream' is imported by ../posawesome/node_modules/serialport/node_modules/@serialport/parser-byte-length/dist/index.js, but could not be resolved – treating it as an external dependency
Cannot find some dependencies. You may have to run "bench setup requirements" to install them.
UNRESOLVED_IMPORT : 'stream' is imported by commonjs-external:stream, but could not be resolved – treating it as an external dependency
Cannot find some dependencies. You may have to run "bench setup requirements" to install them.
UNRESOLVED_IMPORT : 'stream' is imported by ../posawesome/node_modules/serialport/node_modules/@serialport/parser-cctalk/dist/index.js, but could not be resolved – treating it as an external dependency
Cannot find some dependencies. You may have to run "bench setup requirements" to install them.
UNRESOLVED_IMPORT : 'stream' is imported by ../posawesome/node_modules/serialport/node_modules/@serialport/parser-delimiter/dist/index.js, but could not be resolved – treating it as an external dependency
Cannot find some dependencies. You may have to run "bench setup requirements" to install them.
UNRESOLVED_IMPORT : 'stream' is imported by ../posawesome/node_modules/serialport/node_modules/@serialport/parser-inter-byte-timeout/dist/index.js, but could not be resolved – treating it as an external dependency
Cannot find some dependencies. You may have to run "bench setup requirements" to install them.
UNRESOLVED_IMPORT : 'stream' is imported by ../posawesome/node_modules/serialport/node_modules/@serialport/parser-packet-length/dist/index.js, but could not be resolved – treating it as an external dependency
Cannot find some dependencies. You may have to run "bench setup requirements" to install them.
UNRESOLVED_IMPORT : 'stream' is imported by ../posawesome/node_modules/serialport/node_modules/@serialport/parser-ready/dist/index.js, but could not be resolved – treating it as an external dependency
Cannot find some dependencies. You may have to run "bench setup requirements" to install them.
UNRESOLVED_IMPORT : 'stream' is imported by ../posawesome/node_modules/serialport/node_modules/@serialport/parser-regex/dist/index.js, but could not be resolved – treating it as an external dependency
Cannot find some dependencies. You may have to run "bench setup requirements" to install them.
UNRESOLVED_IMPORT : 'stream' is imported by ../posawesome/node_modules/serialport/node_modules/@serialport/parser-slip-encoder/dist/decoder.js, but could not be resolved – treating it as an external dependency
Cannot find some dependencies. You may have to run "bench setup requirements" to install them.
UNRESOLVED_IMPORT : 'stream' is imported by ../posawesome/node_modules/serialport/node_modules/@serialport/parser-slip-encoder/dist/encoder.js, but could not be resolved – treating it as an external dependency
Cannot find some dependencies. You may have to run "bench setup requirements" to install them.
UNRESOLVED_IMPORT : 'stream' is imported by ../posawesome/node_modules/serialport/node_modules/@serialport/parser-spacepacket/dist/index.js, but could not be resolved – treating it as an external dependency
Cannot find some dependencies. You may have to run "bench setup requirements" to install them.
UNRESOLVED_IMPORT : 'stream' is imported by ../posawesome/node_modules/serialport/node_modules/@serialport/stream/dist/index.js, but could not be resolved – treating it as an external dependency
Cannot find some dependencies. You may have to run "bench setup requirements" to install them.
SyntaxError: Unexpected token (52:14) in /home/erpnext/frappe-bench/apps/posawesome/node_modules/serialport/node_modules/@serialport/binding-mock/dist/index.js
✔ Built js/posapp.min.js
✨ Done in 2.022s
UNRESOLVED_IMPORT : 'tty' is imported by ../posawesome/node_modules/serialport/node_modules/debug/src/node.js, but could not be resolved – treating it as an external dependency
Cannot find some dependencies. You may have to run "bench setup requirements" to install them.
UNRESOLVED_IMPORT : 'util' is imported by ../posawesome/node_modules/serialport/node_modules/debug/src/node.js, but could not be resolved – treating it as an external dependency
Cannot find some dependencies. You may have to run "bench setup requirements" to install them.
UNRESOLVED_IMPORT : 'tty' is imported by commonjs-external:tty, but could not be resolved – treating it as an external dependency
Cannot find some dependencies. You may have to run "bench setup requirements" to install them.
UNRESOLVED_IMPORT : 'util' is imported by commonjs-external:util, but could not be resolved – treating it as an external dependency
Cannot find some dependencies. You may have to run "bench setup requirements" to install them.
UNRESOLVED_IMPORT : 'os' is imported by node_modules/supports-color/index.js, but could not be resolved – treating it as an external dependency
Cannot find some dependencies. You may have to run "bench setup requirements" to install them.
UNRESOLVED_IMPORT : 'os' is imported by commonjs-external:os, but could not be resolved – treating it as an external dependency
Cannot find some dependencies. You may have to run "bench setup requirements" to install them.
UNRESOLVED_IMPORT : ' parser-readline' is imported by ../posawesome/posawesome/public/js/posapp/components/pos/ItemsSelector.vue?rollup-plugin-vue=script.js, but could not be resolved – treating it as an external dependency
Cannot find some dependencies. You may have to run "bench setup requirements" to install them.
Any help with this would be hugely appreciated.
Beta Was this translation helpful? Give feedback.
All reactions