angular2 Error: Cannot find module "."
See original GitHub issueJust use it in angular 2.2.3 and webpack. And it throw Error: Cannot find module "."
Issue Analytics
- State:
- Created 7 years ago
- Comments:20 (10 by maintainers)
Top Results From Across the Web
Cannot find module (Angular 2) - Stack Overflow
But I can't get rid of error. Cannot find module app/search/search.module. Folder "search" is in the "app" folder, the path is correct.
Read more >Build:cannot find module 'angular2/core' Error - Syncfusion
Hi, First time working with MVC/Syncfusion. I just open the standard MVC template and installed Syncfusion according to the instructions but before even...
Read more >Cannot find module '@angular/core' error | bobbyhadz
To solve the error "Cannot find module '@angular/core'", make sure you have installed all dependencies by running the npm install command, set the...
Read more >UI NG Bootrstrap : Cannot find module 'angular2-text-mask ...
It seems that the module @ng2-dynamic-forms/ui-ng-bootstrap use the 'angular2-text-mask' ... Module not found: Error: Can't resolve 'angular2-text-mask' in ...
Read more >cannot find module [Node npm Error Solved] - freeCodeCamp
How to Fix the "cannot find module" Error · delete the node modules folder by running rm -rf node_modules · delete package.lock.json file...
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
@inorganik It’s not clear to me if there is any issue here, as per my last comment.
As documented in the README, you must make sure the
Countup
object is available to your application as a global.This needs to be the case irrespective of how you bundle or load modules. The Angular directive is a simple wrapper around the core technology, which happens to be a javascript global.
I have never used webpack, but according to @szykov’s comment there is a plugin for webpack called ProvidePlugin that is able to provide globals. People using webpack should try using that, or similar.
I will try to find time to personally verify the webpack scenario, hopefully by this weekend.
In the meantime I would recommend closing this issue, unless @szykov or @hameltomor have experienced any errors when following the instructions? I have been using this directive for a while now and never encountered any issues.
I’m still having this issue with a fresh Angular 4 app. I’ve included the CountUpModule in my app.
And I’ve added
to polyfills.ts. And the error in the console: