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 want to use 'url-js' in my React+TypeScript project, but I get an error that the declaration file for module 'url-js' cannot be found. "/Users/admin/Desktop/react_demo_project/ee-openapi-h5/node_modules/url-js/dist/url.js" implicitly has type "any".
Try using npm i --save-dev @types/url-js (if it exists), or add a new declaration (.d.ts) file containing declare module 'url-js'; ts(7016) .
So how to write the declaration file of ts?
The text was updated successfully, but these errors were encountered:
I want to use 'url-js' in my React+TypeScript project, but I get an error that the declaration file for module 'url-js' cannot be found. "/Users/admin/Desktop/react_demo_project/ee-openapi-h5/node_modules/url-js/dist/url.js" implicitly has type "any".
Try using
npm i --save-dev @types/url-js
(if it exists), or add a new declaration (.d.ts) file containingdeclare module 'url-js';
ts(7016) .So how to write the declaration file of ts?
The text was updated successfully, but these errors were encountered: