You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Rustem S (JIRA)" <ji...@apache.org> on 2018/07/22 15:48:00 UTC
[jira] [Created] (THRIFT-4602) ERROR in
./node_modules/thrift/lib/nodejs/lib/thrift/connection.js Module not found:
Error: Can't resolve 'child_process'
Rustem S created THRIFT-4602:
--------------------------------
Summary: ERROR in ./node_modules/thrift/lib/nodejs/lib/thrift/connection.js Module not found: Error: Can't resolve 'child_process'
Key: THRIFT-4602
URL: https://issues.apache.org/jira/browse/THRIFT-4602
Project: Thrift
Issue Type: Bug
Components: Node.js - Compiler, Node.js - Library
Affects Versions: 0.11.0
Environment: run commands:
npm install -g @angular/cli
ng new test-thrift
cd test-thrift
npm install thrift
edit file D:\Projects\thriftTest\test-thrift\src\app\app.component.ts, add:
thrift = require('thrift');
run command:
ng serve
OS: Windows 10
nodejs version 10.7.0
npm version 6.1.0
Reporter: Rustem S
ERROR on compile and start Angular 5 application (ng serve):
ERROR in ./node_modules/thrift/lib/nodejs/lib/thrift/connection.js
Module not found: Error: Can't resolve 'child_process' in 'D:\Projects\thriftTest\test-thrift\node_modules\thrift\lib\nodejs\lib\thrift'
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)