You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "James E. King III (JIRA)" <ji...@apache.org> on 2019/01/27 15:56:00 UTC

[jira] [Closed] (THRIFT-4602) ERROR in ./node_modules/thrift/lib/nodejs/lib/thrift/connection.js Module not found: Error: Can't resolve 'child_process'

     [ https://issues.apache.org/jira/browse/THRIFT-4602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James E. King III closed THRIFT-4602.
-------------------------------------
    Resolution: Invalid
      Assignee: James E. King III

Try starting from angular/core instead of angular/cli.
Guidance from: https://github.com/mikaelbr/node-notifier/issues/192



> 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
>            Assignee: James E. King III
>            Priority: Critical
>
> 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)