Has anyone successfully installed Semantic-ui via npm? I am trying to install it for Meteor 1.3 but so far no luck
Uncaught TypeError: Package.describe is not a function, component-package.js:2
Has anyone successfully installed Semantic-ui via npm? I am trying to install it for Meteor 1.3 but so far no luck
Uncaught TypeError: Package.describe is not a function, component-package.js:2
Iām using semantic-ui-less npm package with Meteor thanks to 1.3.2 RC 4
Any update on this? What is the easiest way to get Semantic working these days. I cant install the Atmosphere package anymore since I had to remove some packages it depends on.
This issue still exists with Meteor v1.5.1 and itās really annoying since semantic-ui for Meteor is not updated very often.
Here is what I did:
$ meteor create semantic2 && cd semantic2
$ meteor npm install --save semantic-ui@2.2.10
Note: Iām specifying semantic-ui v2.2.10 here because v2.2.11 has a bug in the āgulp buildā process (which is currently being addressed by the maintainer of semantic-ui and it should be fixed in a couple of days).
The last command will run the semantic-ui installer and I set the installation folder as āclient/semantic/ā (using the automatic installation). You have to put it somewhere in the āclientā folder otherwise the server will try to load semantic-ui as well, which doesnāt make sense to me.
Then:
$ cd client/semantic/
$ gulp build
$ cd ../..
$ meteor
The app is launched successfully. But now if you open the app in your browser and take a look at the console here is what you can see:
TypeError: Package.describe is not a function app.js:52:1
component-package.js http://localhost:3000/app/app.js:52:1
fileEvaluate http://localhost:3000/packages/modules-runtime.js:343:9
require http://localhost:3000/packages/modules-runtime.js:238:16
<anonymous> http://localhost:3000/app/app.js:62659:1
I donāt understand why this issue occurs. Does anyone understand it? Or at least could give us a hand on understanding the source of this?
Any help would be much appreciated! Thanks!
Last time I messed around with semantic-ui I had to install it with this method:
But it would be much better if we could just get it working through npm.
I found the proper way to install the semantic-ui npm package in Meteor without any hack or dirty thing
Iām currently writing an article about it on Medium and I will ask for a submission on the Meteor Blog. I will post the link here very soon. Stay tuned!
EDIT: @nilsi The link you posted is about installing semantic-ui-css which is a very limited flavor of Semantic UI (only the default theme is supported).
Im curious about this blog post. Let me know when you got it ready
Did you ever get round to finishing that article? Iām trying to get this working now myself.
The way we do it:
{
"base": "semantic/",
"paths": {
"source": {
"config": "src/theme.config",
"definitions": "src/definitions/",
"site": "src/site/",
"themes": "src/themes/"
},
"output": {
"packaged": "../../../public/semantic",
"uncompressed": "../../../public/semantic/components",
"compressed": "../../../public/semantic/components/",
"themes": "../../../public/semantic/themes/"
},
"clean": "../../../public/semantic"
},
"permission": false,
"autoInstall": false,
"rtl": false,
"version": "2.2.13"
}
<link rel="stylesheet" type="text/css" href="/semantic/semantic.min.css">
in your main.html"semantic:build": "cd ./private/semantic/semantic && gulp build"
Advantages:
Downsides: