-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
DEMO WARNING: Critical dependency: require function is used in a way in which dependencies cannot be statically extracted #777
Comments
Did you figure this out? |
i got the same problem |
+1, same problem |
Fixes facebookresearch#777 Replace `require` statements with `import` statements in Webpack configuration files to resolve the critical dependency warning and blank page issue. * **`demo/configs/webpack/common.js`** - Replace `require` statements with `import` statements. - Update `module.exports` to `export default`. * **`demo/configs/webpack/dev.js`** - Replace `require` statements with `import` statements. - Update `module.exports` to `export default`. * **`demo/configs/webpack/prod.js`** - Replace `require` statements with `import` statements. - Update `module.exports` to `export default`.
The solution is to update |
@TonyLianLong In addition, when I use python 3.12 and numpy 2.x, this demo didn't work. |
This warning occurred after I built and ran yarn, and I asked GPT that it could be ignored if it did not affect the operation of the project, but after I turned off the warning, nothing could be displayed on the web page (blank page)
The text was updated successfully, but these errors were encountered: