Comments (9)
I can't reproduce that. What version of angular and typescript are you using? Could you provide your app.module.ts and the file(s) in which you are importing EventsModule?
from angular4-events.
Hello,
When i try to import the definition for my app.module like that:
import { EventsModule } from 'angular4-events';
Cannot find module 'angular4-events'.
from angular4-events.
Here's my env:
@angular/cli: 1.4.9
node: 8.6.0
os: darwin x64
@angular/animations: 4.4.6
@angular/common: 4.4.6
@angular/compiler: 4.4.6
@angular/core: 4.4.6
@angular/forms: 4.4.6
@angular/http: 4.4.6
@angular/platform-browser: 4.4.6
@angular/platform-browser-dynamic: 4.4.6
@angular/router: 4.4.6
@angular/cli: 1.4.9
@angular/compiler-cli: 4.4.6
@angular/language-service: 4.4.6
typescript: 2.3.4
from angular4-events.
Have you downloaded the module (npm install --save angular4-events
)? If you run npm list --depth=0
, it should appear as "[email protected]".
from angular4-events.
Yes it's installed:
npm list --depth=0 βββ @angular/[email protected] βββ @angular/[email protected] βββ @angular/[email protected] βββ @angular/[email protected] βββ @angular/[email protected] βββ @angular/[email protected] βββ @angular/[email protected] βββ @angular/[email protected] βββ @angular/[email protected] βββ @angular/[email protected] βββ @angular/[email protected] βββ @angular/[email protected] βββ @types/[email protected] βββ @types/[email protected] βββ @types/[email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected]
from angular4-events.
I just tried to create a test app:
ng new TestApp
cd TestApp
npm install --save angular4-events
Adding the following lines to src/app/app.module.ts does not throw any error:
import { EventsModule } from 'angular4-events';
...
@NgModule({
imports: [
...
EventsModule.forRoot()
]
})
Could you try to do the same?
from angular4-events.
Hello,
Here what i do:
npm install --save angular4-events
`
- [email protected]
updated 1 package in 14.422s
`
Then when i try to import in my app.module like this :
import { EventsModule } from 'angular4-events';
and
@NgModule({
imports: [
...
EventsModule.forRoot()
]
})
from angular4-events.
I did the same thing again, and now it work π‘
Thank you
from angular4-events.
Great, I'm glad it works!
from angular4-events.
Related Issues (9)
- Needs upgrading fo later than Angular 4.3 HOT 1
- Aot Not Supported using angular 5 Calling function 'Ι΅makeDecorator', function calls are not supported. HOT 6
- Throws "Cannot redeclare block-scoped variable 'ngDevMode'" in angular 6 HOT 8
- angular 6 prod build error HOT 3
- angular 5 builds failing 5.0.1 HOT 2
- Cannot redeclare block-scoped variable 'ngDevMode' with angular 5 HOT 4
- Issue in Angular 10 project
- Issue in Angular 10 project HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular4-events.