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

'os.homedir()' is not a function on browser version (Windows 10, Chrome) #18

Closed
floydpink opened this issue Jun 8, 2017 · 1 comment

Comments

@floydpink
Copy link

Here is the stack trace that gets print out on the console:

Unhandled rejection (SystemJS) os.homedir is not a function
	TypeError: os.homedir is not a function
	    at Object.eval (http://localhost:9000/jspm_packages/npm/[email protected]/index.js:6:20)
	    at eval (http://localhost:9000/jspm_packages/npm/[email protected]/index.js:27:4)
	    at eval (http://localhost:9000/jspm_packages/npm/[email protected]/index.js:28:3)
	    at eval (<anonymous>)
	    at Object.eval (http://localhost:9000/jspm_packages/npm/[email protected]:1:123)
	    at eval (http://localhost:9000/jspm_packages/npm/[email protected]:2:4)
	    at eval (http://localhost:9000/jspm_packages/npm/[email protected]:3:3)
	    at eval (<anonymous>)
	Evaluating http://localhost:9000/jspm_packages/npm/[email protected]/index.js
	Evaluating http://localhost:9000/jspm_packages/npm/[email protected]
	Evaluating http://localhost:9000/jspm_packages/npm/[email protected]/index.js
	Evaluating http://localhost:9000/jspm_packages/npm/[email protected]
	Evaluating http://localhost:9000/jspm_packages/npm/[email protected]/index.js
	Evaluating http://localhost:9000/jspm_packages/npm/[email protected]
	Evaluating http://localhost:9000/jspm_packages/npm/[email protected]/index.js
	Evaluating http://localhost:9000/jspm_packages/npm/[email protected]
	Evaluating http://localhost:9000/jspm_packages/npm/[email protected]/browser.js
	Evaluating http://localhost:9000/jspm_packages/npm/[email protected]
	Error loading http://localhost:9000/dist/lib/network-state/index.js
@silverwind
Copy link
Collaborator

It's here: https://github.com/sindresorhus/clean-stack/blob/28fcccdbe8bfd38213613d7e6e8eb0057b23e996/index.js#L6

Not sure what do to about this. I opened sindresorhus/clean-stack#6.

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

3 participants