Comments (4)
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.
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.
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.
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)
- Module not found: Error: Can't resolve 'ngx-speech/speech.service' HOT 6
- Using the service crashes app when browser is not supported
- Provide better documentation
- Not recognizing the voice HOT 1
- Adjust continous recognition and time before automatically ending HOT 3
- Publish new versions to npm HOT 2
- SpeechRecognitionError after migration from Angular4 to 5 HOT 1
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 ngx-speech.