Closed IsaacSomething closed 5 years ago
ControlPosition seems fine.
Can you try deleting node_modules
and running npm install
?
Also, what does the import line looks like?
Okay will try that
The import line looks like this
import { ControlPosition } from '@agm/core/services/google-maps-types';
try also import { ControlPosition } from '@agm/core'
I have uninstalled the node_modules
and then npm install
but I still seem to have a different version of that file, like an older version. I am going to try install on a blank project.
Using import { ControlPosition } from @agm/core
I get the error
No exported member 'ControlPosition'
It's not a different version, it's after compilation. That's not the issue. If you go back to agm-core-1.0.0-beta.7 you'll see the same thing
You're correct that import { ControlPosition } from @agm/core
doesn't work, it currently shouldn't.
It's not a different version, it's after compilation. That's not the issue. If you go back to agm-core-1.0.0-beta.7 you'll see the same thing
Okay yeah that makes sense
I trust this issue was fixed after reinstalling dependencies?
No i cant get it to work. What i am going to try though is to use the @types/googlemaps
instead. Thanks for your help
@doom777 I am also facing the same issue
just putting this here for reference https://github.com/SebastianM/angular-google-maps/issues/1729
Issue description After updating to the most recent release of @agm/core
"@agm/core": "^1.0.0",
I am receiving this issue.This seems to specifically be targeted from this import
import { ControlPosition } from '@agm/core/services/google-maps-types';
In four files that contain that input.
This is the current
package.json
depsOther information If I navigate to the
@agm
package in thenode_modules
folder (This is after a complete uninstall and then reinstall) and then navigate to/core/services/google-maps-types.d.ts
it seems like that file is not the same file that is in the github repo. For theControlPosition
enum the code in thenodule_modules
isYet in the repo it is
https://github.com/SebastianM/angular-google-maps/blob/master/packages/core/services/google-maps-types.ts