These are chat archives for stealjs/steal

17th
Dec 2016
Gregg Roemhildt
@roemhildtg
Dec 17 2016 22:27
anyone know what could cause steal-tools to think that jquery is in "my-project/jquery.js"? I have a project that doesn't require jquery, but one or more dependency does require jquery.
Gira Minus
@gKreator
Dec 17 2016 22:28
Do you have an error log?
Gregg Roemhildt
@roemhildtg
Dec 17 2016 22:29
Not really an error log, but right after I type "steal-tools" it tries to bundle some files, and the message given is: ERROR: Error loading "jquery" at file:/home/gre/public_html/geocola/jquery.js
Gira Minus
@gKreator
Dec 17 2016 22:30
My first go to is delete node_modules folder, then do npm install
then try to rebuild
Gregg Roemhildt
@roemhildtg
Dec 17 2016 22:30
Okay.
I'll give that a shot
still happening. Does steal-tools generate an error log somewhere?
Gira Minus
@gKreator
Dec 17 2016 22:34
I dont think so
Try putting jquery in your package.json. As far as I remember, from what I heard. Steal-tools does include the dependencies of your dependencies
and to use a jquery plugin or something, you will still need to require jquery
Gregg Roemhildt
@roemhildtg
Dec 17 2016 22:37
Yep, thats what I thought. Steal.js has no problem loading the jquery file in a browser, it just seems to happen when I try and build
Gira Minus
@gKreator
Dec 17 2016 22:37
Since you are importing something that is using jquery, you need to require jquery.
Yeah, I would try that. You arent losing anything
Gregg Roemhildt
@roemhildtg
Dec 17 2016 22:38
Okay
Hm...still not working...same error. There must be something wrong in one of my packages..but I really don't know where to look for the issue.
Gira Minus
@gKreator
Dec 17 2016 22:42
could you pastebin me your package.json?
Gregg Roemhildt
@roemhildtg
Dec 17 2016 22:43
Gira Minus
@gKreator
Dec 17 2016 22:48
steal-tools 1.0.0 is relatively new, I am still using 0.16. I would try that real quick. Other then that, I have no idea. I would make a forum post about this on http://forums.donejs.com/c/stealjs
Gregg Roemhildt
@roemhildtg
Dec 17 2016 22:50
@gKreator that works. Must be a bug in the new steal-tools. Thanks for the suggestion!
Gira Minus
@gKreator
Dec 17 2016 22:50
You got it working?
Gregg Roemhildt
@roemhildtg
Dec 17 2016 22:50
Yup, installing steal-tools@0.16 I was able to build successfully
Gira Minus
@gKreator
Dec 17 2016 22:51
Ok, then yes I guess it is a bug in the new steal-tools. Please make an issue report on git about this!
Gregg Roemhildt
@roemhildtg
Dec 17 2016 22:51
I just don't know what the issue is. Something to do with jquery in a nested dependency?
Not that its specific to jquery
Gira Minus
@gKreator
Dec 17 2016 22:52
Yeah something along those lines. I would include your pastebin in the issue.
As long as you post something that you can describe in your best way, it will help. Because atleast one of those devs will read it
Chasen Le Hara
@chasenlehara
Dec 17 2016 23:47
Hey @roemhildtg, if you’d be willing to file an issue in steal-tools with the error, your dependencies, and your build script, that might start us on the right track to figuring out what’s wrong in the new version. 🙂
Gira Minus
@gKreator
Dec 17 2016 23:49
@chasenlehara Might as well do it yourself lol. There is the pastebin of his package.json. I'm sure he is like neck deep in code by now never to be seen again... :D
Chasen Le Hara
@chasenlehara
Dec 17 2016 23:59
Sorry @gKreator, I didn’t see the link to his package.json 🙂
Gira Minus
@gKreator
Dec 17 2016 23:59
@chasenlehara No problem :D, I made sure we got that at least lol