Closed IonutLaceanu closed 9 years ago
When I use the material-ui
URL you gave the material-ui folder in node_modules doesn't have a lib
folder in it. When I use 0.9.2
it does. The module's package.json file has:
"main:"./lib"
"build": "npm run jshint && babel --stage 1 ./src --out-dir ./lib"
. It seems the URL you're using gives you the source code but it's not built into a distribution. When using 0.9.2
we get the published (built) version.
So, when browserify tries to use the material-ui module it reads the package.json file and then can't find the lib folder.
meteorhacks:npm is passing on the commit URL to Meteor's Npm.depend()
function. It seems Meteor's NPM support would need to build the NPM module when downloading a source version instead of a published version.
Ok, got it. Thanks!
@IonutLaceanu - did you open an issue for this with Meteor?
Hi @elidoran - I opened an issue for this over at the Meteor repo, and the guys there were very responsive, but suggested this might need to handled by a browserify transform. Any thoughts on whether that's possible? Thanks!
@mbrookes I replied to the Meteor issue with my babble :) Basically, i think:
I'm open to discussion :)
Thanks for giving this your thought, and for the feedback on here and on the Meteor issue. I agree with you that if you have to go to the trouble of specifying how to build in the transform, you might as well just run the build manually.
Linking to a specific commit is probably not a common enough occurrence to justify trying to automate the build, and now that I understand what's going on, I'm happy to let this rest. I'd close the issue here if it was open to start with! :smile: I'll leave the Meteor one for now to see what the response is to your feedback. Thanks!
The
meteorhacks:npm
package has a nice feature where it allows to add a npm module by using a commit link. However, when I try to use that together with browserify, it doesn't work. The module gets downloaded and added to npm-container, but when trying to start the app, I get this error:The
packages.json
file looks like this:The
application.browserify.js
:If I replace the link with
"0.9.2"
everything works as it should.It would be really nice if it would work, because many of the react-related packages are under active development, and it comes handy to be able to use a package containing some bugfixes without waiting for the release.
Thanks, and keep up the good work!