You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to access a method for registering a customComponent that is meant to be shown in the page the plugin makes. The method takes an id, name and the react component. i works fine when i use it from the plugin but when i try to access it from the main medusa application it keeps not recognizing the method, but i can se in .yalc that the plugin with the method is in the dependencies.
Expected behavior
Able to access the method and call it.
Actual behavior
Keeps giving me this error or saying it can't find the module:
Could not find a declaration file for module 'report-plugin/admin'. 'c:/Users/****/Desktop/Medus Projects/my-medusa-store/node_modules/report-plugin/.medusa/server/src/admin/index.js' implicitly has an 'any' type.
Try npm i --save-dev @types/report-plugin if it exists or add a new declaration (.d.ts) file containing declare module 'report-plugin/admin';ts(7016)
Package.json file
Node.js version
v22.13.1
Database and its version
PostgreSQL 17
Operating system name and version
Windows 10
Browser name
Chrome
What happended?
I am trying to access a method for registering a customComponent that is meant to be shown in the page the plugin makes. The method takes an id, name and the react component. i works fine when i use it from the plugin but when i try to access it from the main medusa application it keeps not recognizing the method, but i can se in .yalc that the plugin with the method is in the dependencies.
Expected behavior
Able to access the method and call it.
Actual behavior
Keeps giving me this error or saying it can't find the module:
Could not find a declaration file for module 'report-plugin/admin'. 'c:/Users/****/Desktop/Medus Projects/my-medusa-store/node_modules/report-plugin/.medusa/server/src/admin/index.js' implicitly has an 'any' type.
Try
npm i --save-dev @types/report-plugin
if it exists or add a new declaration (.d.ts) file containingdeclare module 'report-plugin/admin';
ts(7016)Link to reproduction repo
https://github.com/Nicolas-Mousten/MedusaTest
The text was updated successfully, but these errors were encountered: