-
trying to follow https://adzejs.com/getting-started/capture-data.html#middleware successfully did : nevertheless, i'm getting: [vite] Internal server error: Failed to resolve entry for package "@adze/transport-file". The package may have incorrect main/module/exports specified in its package.json. this is using both node and bun. also it failed with both variants: import {AdzeTransportFile} from '@adze/transport-file'; |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
Hi @mdagit , I will investigate this issue, but could you provide me details about your project that you are installing the transport-file module into? Are you using commonjs or esm? Typescript? Thank you. |
Beta Was this translation helpful? Give feedback.
-
My code is all pure typescript. Pure as the driven snow. |
Beta Was this translation helpful? Give feedback.
-
Here is my tsconfig. After some digging, it seems this might be a vite issue, though honestly I can't make much sense of this: {
} |
Beta Was this translation helpful? Give feedback.
-
You are right that I totally missed that instruction, but sadly even when I comply with that, vite still gives me unhelpful grief: [plugin:vite:import-analysis] Failed to resolve entry for package "@adze/transport-file". The package may have incorrect main/module/exports specified in its package.json. I haven't tried the magic incantations in that vite GitHub issue yet. |
Beta Was this translation helpful? Give feedback.
-
I have pushed a fix for this issue (v1.0.3)! |
Beta Was this translation helpful? Give feedback.
I have pushed a fix for this issue (v1.0.3)!