Closed remnantkevin closed 2 months ago
Seeing the same sort of thing with a different package (link):
// @protobuf-ts
import { RpcError, stackIntercept, ServiceType } from "@protobuf-ts/runtime-rpc";
import { isJsonObject, typeofJsonValue, PbLong, ScalarType, LongType, MessageType } from "@protobuf-ts/runtime";
import { TwirpFetchTransport } from "@protobuf-ts/twirp-transport";
console.log(RpcError, stackIntercept, ServiceType, isJsonObject, typeofJsonValue, PbLong, ScalarType, LongType, MessageType, TwirpFetchTransport);
I get:
✘ [ERROR] Do not know how to load path: http-url:https://unpkg.com/@protobuf-ts/twirp-transport@2.9.3
/input.ts:4:36:
4 │ import { TwirpFetchTransport } from "@protobuf-ts/twirp-transport";
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
For what it's worth, switching CDNs might work around issues with specific package.
For example, swapping to skypack
as the CDN using the skypack:
protocol before the package name (e.g. import thing from 'skypack:package'
) still breaks with the same sort of error message, but switching to esm.run:package
works fine for the example above
I was able to get the RPC bundle working
But yeah there is actually a problem with the original bundle it's using the wrong version of the package
This issue is now fixed 💯
Code editor contents
URL
https://bundlejs.com/?q=recharts%402.8.0
Browser console errors
Browser details
Screenshot of errors on webpage
Click to see screenshot
![bundlejs-error-recharts](https://github.com/okikio/bundlejs/assets/8270635/970f9151-465a-4711-b729-c10cb2048bb8)