Skip to content

Instantly share code, notes, and snippets.

@vicatcu
Created June 12, 2017 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vicatcu/eb5c84fc5f30f81d9194570817a8c1b9 to your computer and use it in GitHub Desktop.
Save vicatcu/eb5c84fc5f30f81d9194570817a8c1b9 to your computer and use it in GitHub Desktop.
Error: ./~/serialport/lib/bindings/linux-list.js
Module not found: Error: Can't resolve 'child_process' in '/home/wd/dev/MyProject/src/node_modules/serialport/lib/bindings'
resolve 'child_process' in '/home/wd/dev/MyProject/src/node_modules/serialport/lib/bindings'
Parsed request is a module
using description file: /home/wd/dev/MyProject/src/node_modules/serialport/package.json (relative path: ./lib/bindings)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /home/wd/dev/MyProject/src/node_modules/serialport/package.json (relative path: ./lib/bindings)
resolve as module
looking for modules in /home/wd/dev/MyProject/src/node_modules
using description file: /home/wd/dev/MyProject/src/package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /home/wd/dev/MyProject/src/package.json (relative path: ./node_modules)
using description file: /home/wd/dev/MyProject/src/package.json (relative path: ./node_modules/child_process)
as directory
/home/wd/dev/MyProject/src/node_modules/child_process doesn't exist
no extension
Field 'browser' doesn't contain a valid alias configuration
/home/wd/dev/MyProject/src/node_modules/child_process doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
/home/wd/dev/MyProject/src/node_modules/child_process.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/home/wd/dev/MyProject/src/node_modules/child_process.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/home/wd/dev/MyProject/src/node_modules/child_process.json doesn't exist
[/home/wd/dev/MyProject/src/node_modules/child_process]
[/home/wd/dev/MyProject/src/node_modules/child_process]
[/home/wd/dev/MyProject/src/node_modules/child_process.ts]
[/home/wd/dev/MyProject/src/node_modules/child_process.js]
[/home/wd/dev/MyProject/src/node_modules/child_process.json]
@ ./~/serialport/lib/bindings/linux-list.js 3:21-45
@ ./~/serialport/lib/bindings/linux.js
@ ./~/serialport/lib/bindings/auto-detect.js
@ ./~/serialport/lib/index.js
@ ./src/providers/serialport.service.ts
@ ./src/app/app.module.ts
@ ./src/app/main.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment