Module not found: Error: Can't resolve '@agm/core/services/fit-bounds' in *
See original GitHub issueIssue description
After doing npm i
with "@agm/core": "~1.0.0-beta.6",
, the following error happens while building:
ERROR in ./src/app/app.module.ngfactory.js
,ERROR in ./path/to/component.ngfactory.js
,Module not found: Error: Can't resolve '@agm/core/services/fit-bounds' in path/to/module
Module not found: Error: Can't resolve '@agm/core/services/fit-bounds' in path/to/component
.
Steps to reproduce and a minimal demo of the problem
- Provide
FitBoundsService
to a module:
import { FitBoundsService } from '@agm/core/services/fit-bounds';
@NgModule({ ..., providers: [ FitBoundsService ], ...})
- Import
FitBoundsService
in a component:
import { FitBoundsService } from '@agm/core/services/fit-bounds';
Current behavior
Fails with previously described build errors.
Expected/desired behavior
Build should not fail.
angular-google-maps, Angular, & any other relevant dependency versions
NOTE: everything works as expected if I pin @agm/core
to 1.0.0-beta.6
,
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Module not found: Error: Can't resolve '@agm/core/services/fit ...
Issue description After doing npm i with "@agm/core": "~1.0.0-beta.6",, the following error happens while building: ERROR in .
Read more >Module not found: Error: Can't resolve 'fs' in - Stack Overflow
The error is because of angular-cli does not support modules in node like "fs" and "path". (Issue). Add the following to the root...
Read more >Can't resolve 'SimpleBar' Error while stencil start
I'm using Covent+Garden-2.3.1 theme, so i download theme from store and try to do stencil start i get below error. Module not found:...
Read more >How to fix 'Module not found: Can't resolve 'http' in ... - YouTube
Your browser can't play this video. ... How to fix ' Module not found : Can't resolve 'http' in ...' error with FCL...
Read more >Module not found: Error: Can't resolve 'http' [Solved] | bobbyhadz
The error Module not found: Error: Can't resolve 'http' occurs because there has been a breaking change in Webpack version 5. To solve...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m seeing the same behavior on version 1.1.0
I’m trying to follow this conversion, but am a bit confused. My use case is that i’m extending
AgmMap
in my own class in order to achieve some functionality. This requires me to callsuper()
withFitBoundsService
Ok, thanks guys 👍