Hi,
On the official documentation it says to import web components like this:
import '@arcgis/map-components/components/arcgis-scale-bar'
but in practice i have to import it with the dist folder or else it won't find it.
on disk, i do see the folder path under node_modules is arcgis/map-components/dist/components/arcgis-scale-bar but it feels like there is some missing mapping maybe.
Hi @JonathanTiu ,
Are you using the latest version (4.34) of the SDK or an older version? The import path above looks correct for the latest version, however in some previous versions the `dist` was needed in the imports. We hope to address situations like this in the future by providing documentation for older versions of the SDK online. Currently our documentation assumes you are using the latest version.
yes I am using 4.34 for both core and map-components?
Weird, The only thing I can think of is that your node_modules folder or some sort of cache is corrupt. Have you tried deleting node_modules and then running `npm install`? Are you using Vite by chance, it makes it's own cache. You can force Vite to clear the cache with `npm run dev -- --force`