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

Browser Shim Error #22

Closed
rafegoldberg opened this issue Nov 3, 2017 · 1 comment
Closed

Browser Shim Error #22

rafegoldberg opened this issue Nov 3, 2017 · 1 comment

Comments

@rafegoldberg
Copy link

app-root-path throws an error when I try to use it with Browserify:

Uncaught TypeError: Cannot read property 'filename' of undefined
    at Object.require.48.path (browser-shim.js:3)
    at s (_prelude.js:1)
    at _prelude.js:1
    at Object.require.13.Vendor (product.js:9)
    at s (_prelude.js:1)
    at _prelude.js:1
    at Object.require.379.Vendor (product.js:16)
    at s (_prelude.js:1)
    at e (_prelude.js:1)
    at _prelude.js:1

Might this be related to customizing the Browserify paths option?

@Bluebie
Copy link

Bluebie commented Feb 2, 2020

hey why did this issue get closed? is there some way to work around it? i'm experiencing it and pretty confused while trying to use app-root-path, which has a browser shim that tries to use require.main.filename

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