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!

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 Building a MEAN Application Going MEAN with Angular Setting Up webpack

Toni Caktas
Toni Caktas
16,478 Points

My app does not work when i install webpack....just disappointing that the tutorial is not working as it should....

vendor.bundle.js:13665 Error: [$injector:unpr] Unknown provider: dataServiceProvider <- dataService <- mainCtrl http://errors.angularjs.org/1.5.5/$injector/unpr?p0=dataServiceProvider%20%3C-%20dataService%20%3C-%20mainCtrl at vendor.bundle.js:183 at vendor.bundle.js:4573 at Object.getService [as get] (vendor.bundle.js:4726) at vendor.bundle.js:4578 at getService (vendor.bundle.js:4726) at injectionArgs (vendor.bundle.js:4750) at Object.invoke (vendor.bundle.js:4772) at $controllerInit (vendor.bundle.js:10230) at nodeLinkFn (vendor.bundle.js:9148) at compositeLinkFn (vendor.bundle.js:8512)(anonymous function) @ vendor.bundle.js:13665(anonymous function) @ vendor.bundle.js:10340Scope.$apply @ vendor.bundle.js:17449bootstrapApply @ vendor.bundle.js:1864invoke @ vendor.bundle.js:4780doBootstrap @ vendor.bundle.js:1862bootstrap @ vendor.bundle.js:1882angularInit @ vendor.bundle.js:1767(anonymous function) @ vendor.bundle.js:30978trigger @ vendor.bundle.js:3281defaultHandlerWrapper @ vendor.bundle.js:3571eventHandler @ vendor.bundle.js:3559

1 Answer

Ronald Hunter
Ronald Hunter
17,474 Points

You have to require you directives and services to your app.js file in scripts. It's saying that it doesn't know what service your trying to use is. which means it doesn't know where it is.


and in each file you must require angular