Closed Tuhtarov closed 6 months ago
Hi @Tuhtarov, can you provide a minimum reproduction repo? The repo is very useful to understand what you are trying to do.
Remember that '@gmap-vue/v3/components'
only export types, not real classes. I never tried to import all types in that way import '@gmap-vue/v3/components'
, I only imported them individually like the following example import {Map, Marker} from '@gmap-vue/v3/components'
.
Could you open a discussion on this repo? questions and help should happen in discussions, not on issues. I'm going to remove this template issue in a few days. Thank you.
@diegoazh, sorry for the trouble, the problem went away after reinstalling node_modules. Thank you
When I try to import the MapLayer type then I get the following error in the console:
Error: Failed to scan for dependencies from entries: ✘ [ERROR] No known conditions for "./components" specifier in "@gmap-vue/v3" package [plugin vite:dep-scan]
This error came from the "onResolve" callback registered here: node_modules/esbuild/lib/main.js:1293:20: 1293 │ let promise = setup({
Steps to reproduce
Just import some type from v3/components
Os
[ ] Linux Ubuntu 22.04
Node: 20
NPM: 10
Plugin version
I use TS 5.2.2, Vue 3.4 and Vite 5.2.0
Also i have this vite config segment: