-
Notifications
You must be signed in to change notification settings - Fork 27.8k
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
worker-loader support with webpack inlined #21972
Comments
Whether inlined or not, I'm getting the same error. I'm using TypeScript module.exports = {
future: {
webpack5: true,
},
reactStrictMode: true,
webpack: (config) => {
config.module.rules.unshift({
test: /\.worker\.ts$/,
loader: "worker-loader",
});
return config;
},
}; Using a JS/TS file with |
Did anyone manage to fix this or have a workaround? |
Are you using Next v11? I ended up continuing with the |
@BayanBennett Could you please share an example of how you got it working using |
Thanks a lot! |
The example https://github.com/vercel/next.js/tree/canary/examples/with-web-worker has been updated to use |
@timneutkens Is there any support for |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
What version of Next.js are you using?
10.0.7-canary.6
What version of Node.js are you using?
v12
What browser are you using?
Chrome
What operating system are you using?
macOs
How are you deploying your application?
Other platform
Describe the Bug
Latest next.js version with webpack inlined breaks worker-loader.
Build throws an exception.
Example:
Expected Behavior
build to succeed
To Reproduce
Bug repro: https://github.com/ramasilveyra/bug-repro-next-w5-inline-worker
The text was updated successfully, but these errors were encountered: