Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/@refinedev_antd.js?v=8efe8509'
Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/@refinedev_antd.js?v=8efe8509' does not provide an export named 'useNotificationProvider' (at App
3 Replies
Hi @parothia. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
The error message "Module 'X' has no exported member 'Y'" typically occurs when using
pnpm
due to its cache system. In your case, the error message is indicating that the module '@refinedev/antd' does not provide an export named 'useNotificationProvider'.
To resolve this error, you can install the latest version of the '@refinedev/antd' module by running the following command:
This should update the module to the latest version and resolve the "not exported" error. If the error persists, it might be due to an issue with the cache system of your package manager. In that case, try clearing the cache and reinstalling the dependencies.
For more information, you can refer to the FAQ section (https://refine.dev/docs/faq/) of the refine documentation.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@1149386202403844156> kapa.ai is still learning and improving, please let us know how it did by reacting below
like-gold•14mo ago
Hello @parothia are you using pnpm? If so, as bot mentioned, it's probably version issue. You can install latest version of
@refinedev/antd
and it should be fixed.