Code Monkey home page Code Monkey logo

Comments (9)

qligier avatar qligier commented on June 26, 2024

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.

anouarcharif avatar anouarcharif commented on June 26, 2024

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.

anouarcharif avatar anouarcharif commented on June 26, 2024

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.

qligier avatar qligier commented on June 26, 2024

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.

anouarcharif avatar anouarcharif commented on June 26, 2024

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.

qligier avatar qligier commented on June 26, 2024

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.

anouarcharif avatar anouarcharif commented on June 26, 2024

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.

anouarcharif avatar anouarcharif commented on June 26, 2024

I did the same thing again, and now it work πŸ—‘

Thank you

from angular4-events.

qligier avatar qligier commented on June 26, 2024

Great, I'm glad it works!

from angular4-events.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.