-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
source map errors with Create React App (CRA) / webpack #6017
Comments
Closing due to inactivity. If this is still an issue for you or if you have further questions, the OP can ask shaka-bot to reopen it by including |
@shaka-bot reopen |
hi @avelad, |
@shaka-bot change to bug |
Try to use |
hi @avelad, |
This refers to sources that don't exist. These are polyfills built into the compiler. |
I'm not sure we can do much about that, either. The Closure compiler writes the sourcemap. This should stop being an issue after we move to TypeScript. In the meantime, those seem like harmless warnings you can ignore. |
hi @joeyparrish, I'm using |
correction: these paths do exist inside the
|
That's right. They exist only in the source code of the Closure Compiler, not in the player repo at all. The compiler synthesizes our sources together with ES6 polyfills, and the virtual paths of those polyfills show up in the map. |
gotcha. one reason why this is maybe more than an annoyance, is that the CRA/webpack stack doesn't allow to disable source maps for single packages. so the only way to remove these warnings from stdout is to disable source maps entirely, which is not really desired while developing. stdout needs to be warning-free so compiler errors and warnings can be easily spotted while developing |
Sorry for the inconvenience. We won't be using the Closure Compiler forever. We'll update to modern tooling as soon as we have the bandwidth for it. Internal projects are taking more of our time right now. |
Have you read the FAQ and checked for duplicate open issues?
yes
If the problem is related to FairPlay, have you read the tutorial?
unrelated to fairplay
What version of Shaka Player are you using?
4.7.1
Can you reproduce the issue with our latest release version?
yes
Can you reproduce the issue with the latest code from
main
?unknown
Are you using the demo app or your own custom app?
Create React App (CRA)
If custom app, can you reproduce the issue using our demo app?
n/a
What browser and OS are you using?
Vivaldi 6.5.3206.39, macOS 14.2
For embedded devices (smart TVs, etc.), what model and firmware version are you using?
n/a
What are the manifest and license server URIs?
n/a
What configuration are you using? What is the output of
player.getConfiguration()
?n/a
What did you do?
setup
$ npx create-react-app shaka-debug $ cd shaka-debug $ npm install shaka-player
add this to line 1 in
src/index.js
:start webpack
watch stdout
What did you expect to happen?
no source map errors in the console
What actually happened?
source map errors in the console
The text was updated successfully, but these errors were encountered: