question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installation Issue

See original GitHub issue

I get the following error when I want to use jsvectormap: this is how I imported:

import { jsVectorMap } from '@/components/map/jsVectorMap'
import { Map } from '@/components/map/world'

Captu;lre

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
themustafaomarcommented, Aug 10, 2021

Ah, of course, there is no package called @tpyes/jsvectormap!

The typescript was just suggesting a wrong fix.

I suggest watching a video or reading an article a that explains how to install a JavaScript plugin with Nextjs, as I mentioned I didn’t use React so I can’t help here 😦

Closing this issue as it’s not related to Jsvectormap.

0reactions
vahidtakrocommented, Aug 10, 2021

According to these answers, YES, check this:

https://stackoverflow.com/questions/41462729/typescript-react-could-not-find-a-declaration-file-for-module-react-material

following the answers (except the one who used a little hack) I had to install it like this: npm install @types/jsvectormap

but I get following error:

npm install @types/jsvectormap
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@types%2fjsvectormap - Not found
npm ERR! 404
npm ERR! 404  '@types/jsvectormap@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to troubleshoot Windows Installer errors - Microsoft Support
Describes how to troubleshoot problems that occur when you install, uninstall, or upgrade a program on a Windows-based computer by using Windows Installer....
Read more >
Fix problems installing Chrome - Google Chrome Help
Fix problems installing Chrome. If you get an error message when you try to download and install Google Chrome, try these fixes.
Read more >
Common Installation Issues and Solutions
Common ways installation can fail and what to do about it. ... The common issues break out into three main categories: Downloaded files...
Read more >
Possible Causes of an Installation Problem
Incorrect patches installed · Installing a patch that does not correspond to your architecture · Permissions problems · The presence of a previous...
Read more >
General installation problems - IBM
These problems and resolutions are related to general issues that might occur ... During a Microsoft Windows installation, if you receive a message...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found