[ERROR] Unable to determine module type for application/source-map mime type

Hi, I'm just trying to get a RPC Service binding working between 2 of our workers, basically added a new class WorkerEntrypoint to Worker A and now get
[ERROR] Unable to determine module type for application/source-map mime type
[ERROR] Unable to determine module type for application/source-map mime type
right after the list of env vars, bindings etc the worker has access to after successful upload. This is in a GitHub Action. Also just moved the method from the class into the default export next to the fetch handler but am getting the same error. I guess it's probably something to do with how Rakkas uses vite & vavite, but I wanted to check in here in hope someone might have a tip 🤞 All the code within that method is already being used throughout the codebase without any issue and again, commenting this method out resolves the deploy error I don't have sourcemaps enabled in vite and also disabled the sentry sourcemap setting 🤷‍♂️
3 Replies
CanRau
CanRauOP6mo ago
Maybe gonna try http service binding tommorow instead might make more sense for our code base anyway 🤔 maybe wrangler's upload_source_maps has something to do with the error?
fforres
fforres6mo ago
Did you figure this out @CanRau ? Been seeing the same issues on and off. Works after a few retries... but it's quite annoying
CanRau
CanRauOP6mo ago
nope, switched to http service bindings which are more practical for this use case anyway, sorry

Did you find this page helpful?