Open kevin25 opened 1 month ago
hi @kevin25 - thanks for raising the issue. Unfortunately, the error log is not showing anything useful, so we to dig into it to find the root cause. Are you familiar maybe with "developer tools" in a browser? It will be very helpful, if you will be able firstly open it and then jump to analytics page. Error will appear, but then in the "Network" we can check if all requests went ok (you can make a screenshot of network tab and paste it here). Does this error appear when you click "Analytics" on the sidebar? Which version of medusa-store-analytics are you using? (I am talking about version from NPM)
Also could you please take a look at your backend logs? Maybe there we will find something useful.
hi @kevin25 - any news in this topic?
I have the same issue, so can provide additional context (or try to).
The back-end logs aren't showing any errors. The only item I assume relates, is "[10/Sep/2024:02:16:06 +0000] "GET /admin/analytics-configs HTTP/1.1" 304", but it's successful from the looks of it.
The front-end is pretty useless, it's only giving the React #130:
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.[missing argument]
I'm using @rsc-labs/medusa-store-analytics v0.14.0
.
Additional plugins I have are:
medusa-payment-stripe
medusa-payment-paypal
medusa-file-cloudinary
medusa-plugin-sendgrid
medusa-plugin-mailchimp
If there's anything additional I can do for you to help investigate this - let me know
hi @jaylinsell - thank you for your proposal. Indeed, I would need some additional help. Could you please tell what versions you have for medusa packages? I mean @medusajs/medusa, @medusajs/admin etc.
Additionally, could you please open network tab before clicking Analytics
on the sidebar and check if any of these requests (marked in blue) have failed:
Sure - I'll provide the whole dependancy list, just in case.
"dependencies": {
"@medusajs/admin": "^7.1.4",
"@medusajs/cache-inmemory": "^1.8.8",
"@medusajs/cache-redis": "^1.8.8",
"@medusajs/event-bus-local": "^1.9.6",
"@medusajs/event-bus-redis": "^1.8.9",
"@medusajs/file-local": "^1.0.2",
"@medusajs/medusa": "^1.20.9",
"@rsc-labs/medusa-store-analytics": "^0.14.0",
"@tanstack/react-query": "4.22.0",
"babel-preset-medusa-package": "^1.1.13",
"body-parser": "^1.19.0",
"cors": "^2.8.5",
"dotenv": "16.0.3",
"express": "^4.17.2",
"medusa-file-cloudinary": "^1.0.2",
"medusa-fulfillment-manual": "^1.1.38",
"medusa-interfaces": "^1.3.7",
"medusa-payment-manual": "^1.0.24",
"medusa-payment-paypal": "^6.0.2",
"medusa-payment-stripe": "^6.0.7",
"medusa-plugin-mailchimp": "^1.1.50",
"medusa-plugin-sendgrid": "^1.3.12",
"prism-react-renderer": "^2.0.4",
"typeorm": "^0.3.16"
},
"devDependencies": {
"@babel/cli": "^7.14.3",
"@babel/core": "^7.14.3",
"@babel/preset-typescript": "^7.21.4",
"@medusajs/medusa-cli": "^1.3.21",
"@types/express": "^4.17.13",
"@types/jest": "^27.4.0",
"@types/node": "^17.0.8",
"babel-preset-medusa-package": "^1.1.19",
"cross-env": "^7.0.3",
"eslint": "^6.8.0",
"jest": "^27.3.1",
"rimraf": "^3.0.2",
"ts-jest": "^27.0.7",
"ts-loader": "^9.2.6",
"typescript": "^4.5.2"
}
None of those calls are even being made by the looks of it. Screenshot attached. I've filtered it out to only fetch/XHR calls to eliminate the noise, but in terms of analytics, analytics-configs
seem to be the only request made in my case.
thank you @jaylinsell . I copied dependencies which you put and tried locally on my side, but unfortunately I cannot reproduce it.. Let me think about it what we can do more - this error is really hard to catch.
I got these error and I can't open it