beyonk-group / svelte-mapbox

MapBox Map and Autocomplete components for Svelte (or Vanilla JS)
MIT License
340 stars 62 forks source link

Cannot resolve dependency '@beyonk/svelte-mapbox' in svelte3-parcel-starter #1

Closed bebopxff closed 4 years ago

bebopxff commented 4 years ago

After installed @beyonk/svelte-mapbox in svelte3-parcel-starter via yarn add @beyonk/svelte-mapbox, got an error message Cannot resolve dependency '@beyonk/svelte-mapbox'. How can i fix it?

Version:

@beyonk/svelte-mapbox 2.2.3

antony commented 4 years ago

@bebopxff it sounds like your yarn command hasn't correctly added the dependency to your project. I don't know much about yarn so I'm not sure how to help other than to suggest you look in the yarn docs for how to add a dependency?

It needs to be added as a dependency not a devDependency for a Svelte project.