You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
web-worker doesn't work with typescript and nextjs. Suggested babel-loader only works with js files.
Nextjs uses webpack5 and bunch of own loaders.
Adding
TypeError: finalInputFileSystem._writeVirtualFile is not a function
at VirtualModulesPlugin.writeModule (/Users/user/Projects/p/node_modules/webpack-virtual-modules/lib/index.js:155:30)
at Object.pitch (/Users/user/Projects/p/node_modules/@shopify/web-worker/build/cjs/webpack-parts/loader.js:88:29)
Overview
web-worker doesn't work with typescript and nextjs. Suggested
babel-loader
only works with js files.Nextjs uses webpack5 and bunch of own loaders.
Adding
is not enough.
I was able to make it work by modifying webpack config in
next.config
like this:So the appropriate rule looks like this:
But this solution feels flakey.
Consuming repo
https://github.com/Shopify/quilt/tree/main/packages/web-worker
Scope
Is this issue related to a specific package?
Checklist
The text was updated successfully, but these errors were encountered: