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
Next 13 /app directory minification bug with hls.js #43292
Comments
This is still an issue on v13.0.6-canary.0. I've updated the reproduction code & original issue to the latest release. |
These seemed to be incorrect, I could reproduce the problem, and it is an SWC Minifier bug. |
Hmm strange, I realised I only tested the |
I'm working on this at swc-project/swc#6507 , but I'm not sure how I should create a test case for it. |
Oh seems like this is a same issue as #43292 |
This will be fixed by swc-project/swc#6521 |
Closing as duplicate of #43292 |
@balazsorban44 @kdy1 You closed the issue, because it's the duplicate of this very issue 😅 |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
What browser are you using? (if relevant)
Not relevant
How are you deploying your application? (if relevant)
next start
Describe the Bug
When using
hls.js
with the new/app
directory, videos played no longer work, because of a syntax error in a blob file, presumable caused by a minification bug.Running the reproduction project using
yarn dev
works as expected, it's only when running the project in production that the problem occurs, usingyarn build && yarn start
.It looks to me that it's a bug with minifying the project, but turning setting
swcMinify
tofalse
innext.config.js
file changes nothing.Here's the generated blob resource link generated by
hls.js
:It succeeds with an ok status code of
200
, but when parsing the file it encounters issues as it it seems like it's got a syntax error.Here's the contents of the file:
And the browser console simply logs this error:
Expected Behavior
When using
hls.js
with the new/app
directory, videos should work as they did before in the/pages
directory and have the same behaviour in both the development server and the production build.Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
https://github.com/Puharesource/next-app-directory-with-hls-bug
To Reproduce
1. Build the project
2. Run the project
3. Navigate to the index page
4. Failure
The video element won't load the video and the console throws an error.
The text was updated successfully, but these errors were encountered: