question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to add Semantic-ui to Webpack with vue-cli

See original GitHub issue

yesterday, im have a problem with semantic ui js to import in webpack with vue-cli.

but now that problem is resolved. im just share how do im solve this problem.

import semantic from 'semantic' // error

i try again.

import semantic from 'semantic-ui' // error again

hmm, webpack does not recognize semantic.

but im try this

import semantic from 'semantic-ui/dist/semantic.js' // yes, it works!

if i’m wrong, please comment. thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:8
  • Comments:13

github_iconTop GitHub Comments

15reactions
krisanalfacommented, Oct 24, 2016

For me, I use semantic-ui-css package and add:

require('semantic-ui-css/semantic.css')
require('semantic-ui-css/semantic.js')

In my main.js file.

14reactions
krisanalfacommented, Nov 26, 2016

Of course before you requiring ui-css, you can:

window.$ = window.jQuery = require('jquery')

require('semantic-ui-css/semantic.css')
require('semantic-ui-css/semantic.js')
Read more comments on GitHub >

github_iconTop Results From Across the Web

Semantic UI Vue
Semantic UI Vue is the Vue integration for Semantic UI. ... Vue.use(SuiVue);. If you are not using Webpack, you can add the script...
Read more >
Using vue.js with semantic UI - Stack Overflow
1) Install jQuery if it's not installed (properly!): npm install --save jquery. then in your webpack.config file (I just added it in ...
Read more >
Working with Webpack | Vue CLI
Vue CLI is in Maintenance Mode! For new projects, it is now recommended to use create-vue to scaffold Vite-based projects.
Read more >
vue-cli with Semantic UI on webpack - Qiita
Copied! $ vue init webpack-simple my-project This will install Vue 2.x version of the template. For Vue 1.
Read more >
Getting Started | Semantic UI
Semantic UI packaged Gulp build tools so your project can preserve its own theme changes. The easiest way to install Semantic UI is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found