Skip to content

Instantly share code, notes, and snippets.

@vicatcu
Created June 12, 2017 16:40
Show Gist options
  • Save vicatcu/1a33e942511342e5b925fdaa0ebd16e6 to your computer and use it in GitHub Desktop.
Save vicatcu/1a33e942511342e5b925fdaa0ebd16e6 to your computer and use it in GitHub Desktop.
Error: ./~/serialport/lib/list-unix.js
Module not found: Error: Can't resolve 'child_process' in '/home/wd/dev/MyProject/src/node_modules/serialport/lib'
resolve 'child_process' in '/home/wd/dev/MyProject/src/node_modules/serialport/lib'
Parsed request is a module
using description file: /home/wd/dev/MyProject/src/node_modules/serialport/package.json (relative path: ./lib)
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)
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/list-unix.js 4:19-43
@ ./~/serialport/lib/bindings.js
@ ./~/serialport/lib/serialport.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