Can you please publish a new version of @zeit/next-workers that includes the typescript support (#431)?
is there any update on this?
Quick fix for anyone struggling: Install patch-package & use the following:
diff --git a/node_modules/@zeit/next-workers/index.js b/node_modules/@zeit/next-workers/index.js
index 6d65dcf..dfe4ec1 100644
--- a/node_modules/@zeit/next-workers/index.js
+++ b/node_modules/@zeit/next-workers/index.js
@@ -8,7 +8,7 @@ module.exports = (nextConfig = {}) => {
}
config.module.rules.push({
- test: /\.worker\.js$/,
+ test: /\.worker\.(js|ts)$/,
loader: 'worker-loader',
options: nextConfig.workerLoaderOptions || {
name: 'static/[hash].worker.js',
Most helpful comment
Quick fix for anyone struggling: Install
patch-package& use the following: