How to serve?
See original GitHub issueHi,
I’m getting this error. How to do the development from this project?
Using ng serve cause the error. Any other alternative way?
bash-3.2$ ng serve
You have to be inside an angular-cli project in order to use the serve command.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
How to Serve in Tennis: 6-Step Guide - TennisGate
#1 – FIND THE RIGHT STANCE & GRIP. You can only hit an effective serve from a solid starting position. · #2 –...
Read more >How to Serve a Tennis Ball (with Pictures) - wikiHow
1. Get in position. Before you begin to serve the ball, you have to stand behind the baseline, on the side opposite the...
Read more >Tennis Serve Technique – 7 Steps To Correct Serve
If the waiter's position persists, then complement the hitting part exercise with additional drills for correcting the waiter's serve. Step 4: Backswing &...
Read more >Ultimate Tennis Serve Lesson - How To Serve In Tennis
Ultimate Tennis Serve Lesson - How To Serve In Tennis. The tennis serve is the most complex shot in the sport, there are...
Read more >11 Steps To Hit A Perfect Tennis Serve
Make contact with the ball with your arm extended straight above your body. For a first serve, you're most likely to contact the...
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
@jvandemo Yup. It’s working fine now. Just every time if any changes on
ngx-library
and need to executenpm run tsc
. If got any hot deploy/watch will be better.Now i moved all the code to the project
hello-world
for development. If everything work fine, only move back tongx-library
and to the final test.At the
app.module
has to import asSampleModule.forRoot()
only worked.@FanYeeChok
ng serve
is throwing error because this is not an angular-cli project.What you can do is to rely on
npm link
to use your library in a cli project.Try this:
yo angular2-library
. Let’s say you go with namengx-library
.npm run tsc
ng new hello-world
npm link
inside/ngx-library
, andnpm link ngx-library
inside/hello-world
to have your library available inside your Angular appnode_modules
folder.SampleModule
module intoapp.module
(add to decorator imports as well). If you have problems when running ng serve, try adding the library to decorator asSampleModule.forRoot()
.<sample-component></sample-component>
in app.component.html. Runng serve
. It should show an h1 with text “Sample Component”. Our library is working.@jvandemo what do you think about adding to README these or some other indications on how to use the
yo
library in development?