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

process is not defined. in webpack5 #40

Open
amotzte opened this issue Feb 14, 2022 · 2 comments
Open

process is not defined. in webpack5 #40

amotzte opened this issue Feb 14, 2022 · 2 comments
Assignees
Labels

Comments

@amotzte
Copy link

amotzte commented Feb 14, 2022

Hi,
I'm getting an error after upgrading to webpack5. Appears to be because of the following

, xtermMatch = process.platform === "win32" ? require("./lib/xterm-match") : null;

It seems that process is not defined in webpack5
See https://webpack.js.org/migrate/5/#run-a-single-build-and-follow-advice

Is there any plan to fix this ?

@medikoo
Copy link
Owner

medikoo commented Feb 15, 2022

@amotzte this is a Node.js only module. It's not intended for browsers

@luisreyes
Copy link

I had this issue all of a sudden pop up.
I found out that my IDE autocompleted some import with ... from 'cli-color'
This caused webpack to try and bundle cli-color with the client scripts.

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

No branches or pull requests

3 participants