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

TypeError: Cannot read property 'filter' of undefined #25

Closed
Alynva opened this issue Aug 4, 2018 · 4 comments
Closed

TypeError: Cannot read property 'filter' of undefined #25

Alynva opened this issue Aug 4, 2018 · 4 comments

Comments

@Alynva
Copy link

Alynva commented Aug 4, 2018

var debugVars = process.execArgv.filter(function (execArg) {

doing a little hack...

var debugVars = process.execArgv ? process.execArgv.filter(function (execArg) {
	return (/(debug|inspect)/.test(execArg));
}) : [];

I got this another error:

TypeError: fork is not a function

this.child = fork(worker, args, options);

Someone can help?

@avoidwork
Copy link
Owner

Hi @Alynva, what's the point of the change? process.execArgv is always an array.

@Alynva
Copy link
Author

Alynva commented Aug 4, 2018 via email

@Alynva
Copy link
Author

Alynva commented Aug 4, 2018

Googling it, I found this comment: facebook/create-react-app#3032 (comment)

Than I suppose that tiny-worker is only for NodeJS and not to use in browser environment.

@avoidwork
Copy link
Owner

ah, yes that is the case. it was meant to mimic a Worker for node.

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