Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ReferenceError: undefinedcreateProvider is not defined

I have a problem with my react project. after 5 months of developing this project, I get this error a lot. undefinedcreateProvider is not defined and I have to reinstall node_modules. But I get this error again after a few changes in the project. I don't know why this error appears!

undefinedcreateProvider is not defined

like image 752
Moein Alizadeh Avatar asked Oct 16 '22 12:10

Moein Alizadeh


1 Answers

I had the same issue and also important to notice that I use hard-source-webpack-plugin. There are two ways to solve this problem (at least for me):

  1. Downgrade webpack to v4.18.1; or
  2. Disable hard-source-webpack-plugin in webpack config, though the webpack builds are slower now.

Deleting .cache folder didn't help me.

like image 96
bogem Avatar answered Oct 20 '22 18:10

bogem