Seem to be getting a strange error after downloading semantic-ui and I can't get it to run when I've chosen what I do, and do not want in my custom.semantic.json file. I've tried also downloading/installing the jQuery package to my directory with no joy. Error message below.
>/Users/Kyle/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
throw(ex);
^
> ReferenceError: jQuery is not defined
> at app/definitions/behaviors/api.js:1081:5
> at app/definitions/behaviors/api.js:1083:3
> at /Users/Kyle/Desktop/portfolio/.meteor/local/build/programs/server/boot.js:222:10
> at Array.forEach (native)
> at Function._.each._.forEach (/Users/Kyle/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
> at /Users/Kyle/Desktop/portfolio/.meteor/local/build/programs/server/boot.js:117:5
> Exited with code: 8 Your application is crashing. Waiting for file
> change.
Seem to be getting a strange error after downloading semantic-ui and I can't get it to run when I've chosen what I do, and do not want in my custom.semantic.json file. I've tried also downloading/installing the jQuery package to my directory with no joy. Error message below.
>/Users/Kyle/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
throw(ex);
^
> ReferenceError: jQuery is not defined
> at app/definitions/behaviors/api.js:1081:5
> at app/definitions/behaviors/api.js:1083:3
> at /Users/Kyle/Desktop/portfolio/.meteor/local/build/programs/server/boot.js:222:10
> at Array.forEach (native)
> at Function._.each._.forEach (/Users/Kyle/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
> at /Users/Kyle/Desktop/portfolio/.meteor/local/build/programs/server/boot.js:117:5
> Exited with code: 8 Your application is crashing. Waiting for file
> change.
Share
Improve this question
edited Jul 19, 2015 at 21:02
Christian Fritz
21.4k3 gold badges48 silver badges81 bronze badges
asked Jul 19, 2015 at 18:58
Kyle BoltonKyle Bolton
231 silver badge5 bronze badges
11
- Meteor es with jQuery. How did you install Semantic-UI? Did you use this package? atmospherejs./semantic/ui – fuzzybabybunny Commented Jul 20, 2015 at 5:38
- Yep, I know it does, which is why I'm wondering why I'm getting this issue. I installed semantic-UI through mand line into my Meteor directory and then created the custom.semantic.json file, as soon as it scaffolds out the app and creates the folders I start getting jQuery issues. Weird one! And yep, right from Atmosphere JS. – Kyle Bolton Commented Jul 20, 2015 at 9:08
-
Well, looking at the docs under
Usage
: github./Semantic-Org/Semantic-UI-Meteor - it seems that you want to first create an emptycustom.semantic.json
, and only then do you start Meteor. After Meteor has started you can then editcustom.semantic.json
. – fuzzybabybunny Commented Jul 20, 2015 at 9:14 - I have done this, the file creates and then scaffolds out the rest of app, then I get that error. I have read the documentation umpteen times. – Kyle Bolton Commented Jul 20, 2015 at 10:25
-
What displays when you do
meteor list
? Are you doing something like accidentally loading jQuery twice, the second time maybe being from code in your HTML? I just installed the Semantic-UI package and it starts right up. – fuzzybabybunny Commented Jul 20, 2015 at 10:40
1 Answer
Reset to default 11In Meteor, this happens when custom.semantic.json
is inside the root's lib/
folder. Thus, Semantic-UI generates all its folders and files in lib/
which is loaded before any of its core dependencies, such as jQuery.
The solution is to place custom.semantic.json
in an app folder, such as client/lib/semantic-ui/
.