GithubHelp home page GithubHelp logo

Import guidance required about ngx-speech HOT 4 OPEN

onna avatar onna commented on August 19, 2024
Import guidance required

from ngx-speech.

Comments (4)

ebrehault avatar ebrehault commented on August 19, 2024

Hi!

Maybe it is not clear, but you should not write the 3 dots in the imports, the 3 dots represents the other modules you might already have, like:

imports: [
    BrowserModule,
    FormsModule,
    SpeechModule,
]

And yes, you have to import the module in order to have it working.

from ngx-speech.

rajeshkumaryadavdotcom avatar rajeshkumaryadavdotcom commented on August 19, 2024

Hi,

I understand ... means exising code, I think you understood my question wrong way, my mistake.

I am not asking about imports, I a asking about import

import ABC from 'abc'

I am asking about this import

You are telling me
imports: [ABC]

if we import anything at top level of app.module.ts then we import it in ngmodule's import, you are missing top level import and visual studio code and angular cli is giving error.

from ngx-speech.

rajeshkumaryadavdotcom avatar rajeshkumaryadavdotcom commented on August 19, 2024

image
I am asking about import which you can see on line number 58 but you are telling me about imports as line number 86

When we do import then we add then name of import to imports, you have done imports correctly but you have not mentioned import, thus i tried like

import { SpeechModule } from 'ngx-speech';

But this is not working,

Can you please guide me how to import SpeechModule as line 58 ?

from ngx-speech.

ebrehault avatar ebrehault commented on August 19, 2024

I have just tried the following:

ng new testproject
npm install ngx-speech

Then go to app.module.ts and add at the top:

import { SpeechModule } from 'ngx-speech';

then add SpeechModule in imports:

imports: [
        BrowserModule,
        SpeechModule,
]```

It worked well, I could launch `npm start` with no error

from ngx-speech.

Related Issues (8)

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.