You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
Bug What is the current behavior?
hi,I used webpack 4.5.0 to package react 16.3.1 and react-dom 16.3.1. There was no problem with compiling, but there was a react-dom.development.js problem with the browser:
Opened the react-dom.development.js file and there was a problem with this sentence:
varpopProvider=newContext.popProvider;
in ReactFiberScheduler Function.
I have just discovered that this problem only occurs in the development mode, there is no problem in the production mode.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new) example below:
I tried to pack react 16.3.1 and react-dom 16.3.1 with webpack 3.x and webpack devserver 2.x, no problem.
Below is my webpack.config.js:
Please provide a full isolated example reproducing this. My guess is you have a mix of 16.3.0 and 16.3.1 (perhaps because of the DLL config). Try deleting node_modules and any caches, and then rebuilding.
varrendererSigil=void0;{// Use this to detect multiple renderers using the same contextrendererSigil={};}// (skipped)return{pushProvider: pushProvider,popProvider: popProvider};
It's clear you're using this development version because your bundle has this comment (which doesn't exist in production version):
However as you can see, the comment is actually inserted in a wrong place, and the newline breaks the return statement. So the function should return an object, but it becomes just a return, and this is why later when we try to read something from that object, it throws.
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
hi,I used webpack 4.5.0 to package react 16.3.1 and react-dom 16.3.1. There was no problem with compiling, but there was a react-dom.development.js problem with the browser:
Opened the react-dom.development.js file and there was a problem with this sentence:
in ReactFiberScheduler Function.
I have just discovered that this problem only occurs in the development mode, there is no problem in the production mode.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new) example below:
I tried to pack react 16.3.1 and react-dom 16.3.1 with webpack 3.x and webpack devserver 2.x, no problem.
Below is my webpack.config.js:
What is the expected behavior?
normal operation
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
The text was updated successfully, but these errors were encountered: