-
Notifications
You must be signed in to change notification settings - Fork 150
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
Error: Can't resolve 'process/browser' #365
Comments
Getting a similiar error when using version 3.1.19, with 3.1.18 everything works fine:
|
try to update powerbi-visuals-tools to v3.2.1+ |
@JipAccobat @lucmax94 , hi folks! |
@Demonkratiy I'm still facing the issue in version 3.2.3. |
@JipAccobat , so in that case I suppose that the reason of your issue is that now we use But as a quick tip, just try to define const webpack = require("webpack");
...
module.exports = {
...,
plugins: [
new webpack.ProvidePlugin({
process: "process/browser"
}), ...
]
}; |
Hello @Demonkratiy
|
Still getting the same error as above after upgrading to v3.2.3. I am not using webpack within my project but I tried to fix the error by adding webpack and adding the code from @Demonkratiy. Still getting the same error. Had to go back to v3.1.18.
|
@lucmax94, @JipAccobat, ok, thanks for the info. Is it possible that someone of you will give me an access to your project, so I can debug it? If this is not possible, that's ok, but it can make solving this issue easier and faster. |
@lucmax94 If you install Use |
That worked, thanks! |
Thanks, great. Saved my day. |
I install this but never worked for me. |
Same error message here, I am using webpack and babel |
@andrewluetgers I also ran into this issue and finally resolved it by adding this to my webpck-config override - I am using react-app-rewired
If you are using a non create-react-app set up you could just addd it to the webpack config like so:
Hope that helps you! |
Thanks, that worked perfectly!! |
Save my day |
Perfect! I wanna hug you. |
As microsoft#365 seems to be a fairly popular use case (including for me), I propose we add the necessary tests to the webpack config to mitigate this for developers.
worked like magic! Thanks |
THis worked for me! Thanks a million!! |
Hi, I have a similar issue and none of the abobe works for me. Also I cant find Webpack.Config.js ERROR in visual.js webpack 5.74.0 compiled with 1 error in 268 ms |
There were two issues: - One was resolved by following the steps in microsoft/PowerBI-visuals-tools#365 (comment) - The other one was caused by the .ttf icon in monaco being moved, I changed the rule to now bundle any ttf with the full name (we only have one anyways).
I'm curious. What is the difference having the process package installed in devDependencies section instead of just dependencies ? |
It worked for me as well. Thank you! |
Hello everyone! |
When using 3.1.19 I'm getting the following error:
Can you advice how to fix this?
The text was updated successfully, but these errors were encountered: