[Solved] Problem when using meteor: mainModule in package.json

When having the following properties in my package.json, some of the object property goes missing. For example, Semantic UI’s dropdown expose a jquery method ‘.dropdown’ is not available when the below properties is in my package.json. I understand that it might cause by the eager loading not present anymore, but how to properly make such method available again when using below’s properties? Please advice, thank you.

  "meteor": {
     "mainModule": {
       "client": "client/main.js",
       "server": "server/main.js"
     },
     "testModule": "tests/main.js"
   }

The following post have the same problem and looking for the same solution. But also no one answer. You guys didn’t experience the same problem?

For Semantic UI to work, this is the way I found from other post. I import the required module such as dropdown and also required to import the transition JS file too.

import './lib/semantic-ui/definitions/modules/dropdown';
import './lib/semantic-ui/definitions/modules/transition';
1 Like