Closed jonng1000 closed 2 years ago
Dear Hasan,
Thanks for your quick reply. I've read those pages but am still lost. Do you if its possible for me to get step by step instructions to set the types correctly? I understand I have to do that but am not sure how. Very sorry for the trouble. I am new to javascript and come from a python background. Would uninstalling and reinstalling this module help?
Many thanks Jonathan
Unfortunately, I'm not very experienced with TypeScript either. Maybe, you can also use stackoverflow for a detailed answer.
Hi, I am using react-cytoscapejs in my code, and when I import fcose as per the instructions here:
import Cytoscape from 'cytoscape'; import fcose from 'cytoscape-fcose';
I get this error:
module "C:/Users/weixiong001/Documents/golabel/node_modules/cytoscape-fcose/cytoscape-fcose" Could not find a declaration file for module 'cytoscape-fcose'. 'C:/Users/weixiong001/Documents/golabel/node_modules/cytoscape-fcose/cytoscape-fcose.js' implicitly has an 'any' type. Try
npm i --save-dev @types/cytoscape-fcoseif it exists or add a new declaration (.d.ts) file containing
declare module 'cytoscape-fcose';ts(7016)
May I know how do I fix this issue please? Or can I safely ignore it?
Thank you Jonathan