-
-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new components #26
Comments
that error message state that it can't find the entry html file and nothing about the new component causing the problem. can you state which run command you use, is there any index.html file and its location ? |
how do you create that "dist folder ? can you just copy the index.html from "src/index.html" to "dist/index.html" ? |
I have absolutely no idea. I know thats not helpful. But i tried yet again downloading a fresh copy, running the commands in the directions (this time a dist folder did not magically appear) but I got the same error when i try to load the new component. so I tried creating a dist folder(just in my text editor) and copy pasting the index.html, but it doesn't load the app, it just says Loading... |
before my previous reply I've followed the instruction on the Readme.md even tried running the production build but it never create a dist folder.
so you'll end up with 3 terminal window/tab. will look into it again later today. |
So I did that exactly, but now if i go to the browser and type in
|
maybe the problem is coming from (Angular2-Full-Stack/src/server/app.js):
notice the
try to put the right path to the index.html on your folder either in dist folder or any index.html that you can find. P.S: well in my copy there is no "dist" folder but it is still working fine. another funny thing is that there is only one index.html and it is just one folder up. |
Hmm, I tried changing the path to src/index.html and now i don't get the error, but if i go to and then reload the /about page it doesn't actually load the app, it just says "Loading..." there also aren't any errors in the console or any of the terminal windows |
I'm still wondering about why that dist folder exist.. Anyway can't say much without seeing the actual folder on your end... So might be some command typo on generating / compiling the project.. |
Strange... Would you mind giving me a list of the exact commands you used for that? I'm going to try to start fresh |
Same as I gave you yesterday, so after I git clone this project to a folder I do the mentioned steps above. |
How did you add the new component, production build command, etc? |
You are right, if you visit the |
I updated the project, now everything should work fine, let me know. |
Update your version of NodeJS and also do |
I tried updating everything(node to v 6.10.0, as well as angular cli), and reinstalling node_modules but i'm still getting the same error... |
Try to rename |
I just try to download this project from git.
|
I opened it up this morning and it magically started working ¯_(ツ)_/¯ I wonder if theres some kind of cache or something... Anyway thank you all so much for helping, especially David for updating the project! |
Hi! I'm new to angular 2, so I could just be doing this completely wrong, but i'm trying to add a new component(off a fresh copy), and I did the angular cli
ng g component my-new-component
which added the component fine, but when I add it to theRouterModule
inapp.module.ts
and try to load the page (localhost:4200/newcomponent) it gives me this errorError: ENOENT: no such file or directory, stat 'Desktop/Angular2-Full-Stack-master/dist/index.html' at Error (native)
. Am I just not adding it somewhere? the console only saysFailed to load resource: the server responded with a status of 404 (Not Found)
The text was updated successfully, but these errors were encountered: