Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Angular Basics Setting Up an Angular Application Your First Angular Application

Adam Beer
Adam Beer
11,314 Points

inside the vendor.d84905d9a660346b2af9.js file

After when I installed node_modules. The file has been downloaded incorrectly. In the debug console:

Debugger listening on ws://127.0.0.1:20268/c96ab8fb-9aaf-4a7f-a2f3-a0bc0ddbd295
Debugger attached.
c:\Users\BeerQ\Desktop\Photo blog start\wwwroot\vendor.d84905d9a660346b2af9.js:1
(function (exports, require, module, __filename, __dirname) { webpackJsonp([2],[function(e,t,r){"use strict";r(261),r(279),r(280),r(281),r(283),r(335)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){(function(e){/**
                                                              ^

ReferenceError: webpackJsonp is not defined
at Object.<anonymous> (c:\Users\BeerQ\Desktop\Photo blog start\wwwroot\vendor.d84905d9a660346b2af9.js:1:63)
    at Module._compile (module.js:649:14)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:188:16)
    at bootstrap_node.js:609:3
Waiting for the debugger to disconnect...
ReferenceError: webpackJsonp is not defined
vendor.ts:4
    at Object.<anonymous> (c:\Users\BeerQ\Desktop\Photo blog start\wwwroot\vendor.d84905d9a660346b2af9.js:1:63)
    at Module._compile (module.js:649:14)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:188:16)
    at bootstrap_node.js:609:3

In the problem tab:

Not showing 2156 further errors and warnings. (32, 19702)

What does it mean? Somehow can I fix it?

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there, Adam Beer! It looks like maybe not all of the dependencies got installed correctly. At least one is missing.At 1:20 of the video the downloading and installing of the dependencies is shown and done by issuing the command npm install. You might run this command again and take note of any Error messages received during that stage.

Hope this helps! :sparkles:

Adam Beer
Adam Beer
11,314 Points

Thanks for the quick response! But I've just installed three times now with npm install command and the problem is same still. I wiped everything and reinstalled it. The beginning is good, but after about one minute again, the mistake is comes again. I don't understand what's going on. But this course so is not very enjoyable.

Adam Beer
Adam Beer
11,314 Points

Until I open the wwwrot folder and I am not going in vendor file there is no error.

Adam Beer
Adam Beer
11,314 Points

One question. In the second video of next section. After when I start the server with npm run serve command everything is good and no error message but when I open the localhost:8080 nothing happens. The webpage writes to the window Loading... And that's all.

PS C:\Users\BeerQ\Desktop\Photo blog start> npm run serve

> photoblog@ serve C:\Users\BeerQ\Desktop\Photo blog start
> webpack-dev-server --config config/develop.config.js --inline --progress --port 8080
                                                                                70% 3/3 build modules http://localhost:8080/
webpack result is served from http://localhost:8080
content is served from C:\Users\BeerQ\Desktop\Photo blog start
404s will fallback to /index.html                                              34% 4/10 build modules[at-loader] Using typescript@2.1.4 from typescript and "tsconfig.json" from C:\Users\BeerQ\Desktop\Photo blog start\src\tsconfig.json.
                                           90% optimize assets[at-loader] Checking started in a separate process...

[at-loader] Ok, 1.516 sec.                                                       chunk    {0} app.2adf1d34dc21c2f92e58.js, app.css (app) 175 bytes {2} [rendered]
chunk    {1} polyfills.2adf1d34dc21c2f92e58.js (polyfills) 483 kB [rendered]
chunk    {2} vendor.2adf1d34dc21c2f92e58.js (vendor) 2.59 MB {1} [rendered]
Child html-webpack-plugin for "index.html":
    chunk    {0} index.html 284 bytes [rendered]
Child extract-text-webpack-plugin:
    chunk    {0} extract-text-webpack-plugin-output-filename 3.58 kB [rendered]
webpack: Compiled successfully.
webpack: Compiling...                                                 90% optimize assets
Adam Beer
Adam Beer
11,314 Points

It works now, but I do not know why :D