Changes to my code are not displayed when building the project. WebPack Doesn't seem to be compiling new React changes.

When building code, I am not seeing my changes.  I've changed a simple Text Header on a page and ran the code and it does not change.
I've cleared my cache, restarted, tried a clean build and am at a loss as to what cold be causing this.

We have tested and this is only happening on React JSX pages.  It doesn't look like Webpack is compiling the changes but rather old code.
Crystal RouseWeb Developer/Database AdminAsked:
Who is Participating?
 
Crystal RouseWeb Developer/Database AdminAuthor Commented:
We don't have a compilerconfig.json file.  We have tried repairing VS, re-installing it, re-installing Web pack and Node.  
I appreciate your help.
0
 
Miguel OzSoftware EngineerCommented:
Have a look at your project compilerconfig.json file and make sure the associated output file has been updated with your changes. then check that your code is currently using the output file. Your new code may not be using the new output file.
If more help needed please specify VS/Webpack version and post your configuration files, removing sensitive pwd/file paths.
0
 
Miguel OzSoftware EngineerCommented:
If more help needed please specify VS/Webpack version and post your configuration files, removing sensitive pwd/file paths.You have not given any of this info.
Any asp.net mvc project has it please read it below:
https://github.com/madskristensen/WebCompiler
Quoting link "The extension adds a compilerconfig.json file at the root of the project which is used to configure all compilation.", this could be your issue
0
 
Crystal RouseWeb Developer/Database AdminAuthor Commented:
We were able to correct the problem by running:

run webpack --config webpack.config.js
0
 
Crystal RouseWeb Developer/Database AdminAuthor Commented:
I resolved this issue.  I determined that I will have to run the command in powershell.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.