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

'Uncaught ReferenceError: process is not defined' in Chrome #262

Open
SanderDeWaal1992 opened this issue Nov 21, 2019 · 2 comments
Open

Comments

@SanderDeWaal1992
Copy link

SanderDeWaal1992 commented Nov 21, 2019

I do get an 'Uncaught ReferenceError: process is not defined' error in Chrome since version 0.5.15.
It seems to be caused by issue #255, commit a64d497 line 362 in source-map-support.js
Chrome Version 78.0.3904.97 (Official Build) (64-bit)
node 10.5.0/10.17.0
Problem did not occur for me in FireFox, Edge, Safari. Only in Chrome.

SanderDeWaal1992 referenced this issue Nov 21, 2019
fix: Adapt to node's removal of the module header
@LinusU
Copy link
Collaborator

LinusU commented Nov 21, 2019

Good catch!

Could probably be fixed by wrapping in a check for typeof process === 'object', PR welcome!

@petermking18
Copy link

petermking18 commented May 1, 2024

If using webpack, I was able to solve by adding this to my webpack config:

module.exports = {
    plugins: [
        new webpack.ProvidePlugin({
            process: 'process/browser'
        })
    ]
}

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

No branches or pull requests

3 participants