Skip to content
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

Everything is fine in development mode. The video is not available after the build. #1738

Closed
aon24 opened this issue Feb 12, 2024 · 4 comments
Labels
Needs more info Please add more information or examples

Comments

@aon24
Copy link

aon24 commented Feb 12, 2024

Some videos work after the project is built, but this video(relax music) only plays in development mode:
https://www.youtube.com/watch?v=Z2msUWb6iX4
I tried react-youtube. The same thing. It plays in development, but not after rebuilding

"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-player": "^2.14.1",
"react-scripts": "5.0.1",

Mozilla, GH
Linux Mint 21

@jonathastavares
Copy link

Exactly the same problem here, getting react minified erro 130 after building.

@luwes luwes added the Needs more info Please add more information or examples label Feb 22, 2024
@luwes
Copy link
Collaborator

luwes commented Feb 22, 2024

could you provide a Codesandbox online? this will help with debugging.

@saidelimam
Copy link

Same issue for me, I got:
Unexpected Application Error! Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=object&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings. Error: Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=object&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.

here's my vite config :

{ minify: 'terser', // 'esbuild' by default, 'terser' is slower at build but better compression terserOptions: { compress: { // Terser options for compression drop_console: isProduction && !isPreview, // Remove all console statements (log, time..) drop_debugger: true, // Remove debugger statements passes: 3, // Run the compressor multiple times for better results reduce_funcs: true, // Inline single-use functions reduce_vars: true, // Inline single-use variables }, format: { // Terser options for formatting comments: false, // Remove comments wrap_iife: true, // Wrap immediate function invocations in parentheses }, mangle: { properties: { regex: /^_/, // Example: mangle properties starting with underscores }, }, ecma: 2020, module: true, toplevel: true, safari10: true, } }

@luwes
Copy link
Collaborator

luwes commented Apr 20, 2024

duplicate of #1746

@luwes luwes closed this as not planned Won't fix, can't repro, duplicate, stale Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs more info Please add more information or examples
Projects
None yet
Development

No branches or pull requests

4 participants