I'm facing an error while running unit tests (vitest):
Error: Failed to resolve entry for package "@analytics-debugger/ga4mp". The package may have incorrect main/module/exports specified in its package.json.
The issue is due to incorrect entries in the package.json:
I'm facing an error while running unit tests (vitest):
The issue is due to incorrect entries in the package.json:
Pre-validation fails because of this. It can be easily fixed by using the correct files:
ga4mp version: v0.0.8 node: v20.9.0 vitest: v0.34.6
I temporarily resolved this issue by editing the package.json (replacing ga4mp.min.js with ga4mp.umd.min.js) in the postinstall script.