-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
[Script] Inline scripts do not work with the "worker" strategy #36318
Labels
Script (next/script)
Related to Next.js Script Optimization.
Comments
This was referenced Apr 20, 2022
3 tasks
balazsorban44
added
Script (next/script)
Related to Next.js Script Optimization.
kind: bug
and removed
bug
Issue was opened via the bug report template.
labels
Apr 22, 2022
janicklas-ralph
added a commit
to housseindjirdeh/next.js
that referenced
this issue
Apr 22, 2022
housseindjirdeh
added a commit
to housseindjirdeh/next.js
that referenced
this issue
Apr 25, 2022
ijjk
added a commit
to housseindjirdeh/next.js
that referenced
this issue
Apr 29, 2022
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Verify canary release
Provide environment information
Any environment
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
Embedding an inline script with
next/script
and theworker
strategy shows a console error and the script is not executed in the web worker.Example:
Error:
Expected Behavior
No error and that the script executes normally in the web worker.
To Reproduce
experimental: { nextScriptWorkers: true }
tonext.config.js
<Script strategy="worker" ... />
The text was updated successfully, but these errors were encountered: