componentjs / component

frontend package manager and build tool for modular web applications
https://github.com/componentjs/guide
MIT License
4.55k stars 305 forks source link

component build error #579

Closed xiangbai closed 10 years ago

xiangbai commented 10 years ago

build : resolved in 35ms

/usr/local/lib/node_modules/component/node_modules/component-build/node_modules/component-builder/build/builders/scripts.js:453 throw new Error('failed to resolve the entry point of component "' + tree. ^ Error: failed to resolve the entry point of component "hello_commponent". please either have .scripts or a single .locals in your main component. at Scripts.canonical (/usr/local/lib/node_modules/component/node_modules/component-build/node_modules/component-builder/build/builders/scripts.js:453:11) at /usr/local/lib/node_modules/component/node_modules/component-build/lib/scripts.js:34:44 at /usr/local/lib/node_modules/component/node_modules/component-build/node_modules/component-builder/build/builders/builder.js:578:9 at next (/usr/local/lib/node_modules/component/node_modules/component-build/node_modules/component-builder/node_modules/chanel/lib/proto.js:258:5) at Channel.onevent (/usr/local/lib/node_modules/component/node_modules/component-build/node_modules/component-builder/node_modules/chanel/lib/proto.js:194:9) at Channel.g (events.js:180:16) at Channel.EventEmitter.emit (events.js:92:17) at /usr/local/lib/node_modules/component/node_modules/component-build/node_modules/component-builder/node_modules/chanel/lib/proto.js:142:10 at processImmediate as _immediateCallback

dominicbarnes commented 10 years ago

What does your component.json look like? Sounds like you're missing something.

xiangbai commented 10 years ago

@dominicbarnes http://flippinawesome.org/2014/02/17/introduction-to-the-component-javascript-package-manager/

in the part Create a Project

{ "name": "hello_commponent", "dependencies": { "component/dialog": "*" } }

dominicbarnes commented 10 years ago

That's a really old post, you should reference the guide or wiki for up-to-date examples and guides.

timaschew commented 10 years ago

And the guide links to the same article :D We should remove all links which refers to articles / screencast that not working anymore with 1.x

xiangbai commented 10 years ago

Thank you very much I use the up-to-date examples,when I run the command of component build, the error is :error : Cannot call method 'process' of undefined

like this: installed : necolas/normalize.css@3.0.1 in 1805ms build : resolved in 13486ms build : build/build.js in 32ms - 1kb build : files in 28ms

   error : Cannot call method 'process' of undefined

the index.html can be able to run normally

timaschew commented 10 years ago

I had the same errror yesterday. It seems to happen when components try to build the css. Other files works.

timaschew commented 10 years ago

@xiangbai try to install component again please, you have a broken version of the builder-autoprefixer

xiangbai commented 10 years ago

@timaschew thank you very much, I will try to install component again.

xiangbai commented 10 years ago

@timaschew It's ok! Thank you