Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

require( 'r-script' ) showing error in angularjs 2 #11

Open
anfasci opened this issue Aug 21, 2017 · 1 comment
Open

require( 'r-script' ) showing error in angularjs 2 #11

anfasci opened this issue Aug 21, 2017 · 1 comment

Comments

@anfasci
Copy link

anfasci commented Aug 21, 2017

require( 'r-script' ) showing error in angularjs 2

ERROR in .//r-script/index.js
Module not found: Error: Can't resolve 'child_process' in 'project_path/node_modules/r-script'
@ ./
/r-script/index.js 2:20-44
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://192.168.1.252:4200 ./src/main.ts

@macdja38
Copy link

You can't run this in a browser.

a) it uses node apis.
b) it uses the R binary… which in theory you could probably maybe compile to web assembly, but that's not going to be fun.
c) it uses buffers and environment variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants