export 'default' was not found in 'vue-tailwind'
See original GitHub issueI must be doing something wrong 😦
Plain out-of-the-box everything Vue works perfectly 🥳
The minute I try to add somethingVue Tailwind (2.1.3) - I get this
hermes_1 |
hermes_1 | ERROR in ./app/javascript/packs/hermes_vue.js 33:15-21
hermes_1 | "export 'TInput' was not found in 'vue-tailwind/dist/components/'
hermes_1 |
hermes_1 | ERROR in ./app/javascript/packs/hermes_vue.js 39:8-19
hermes_1 | "export 'default' (imported as 'VueTailwind') was not found in 'vue-tailwind'
hermes_1 |
My app.vue has one added element
<template>
<div id="app">
<t-input />
<p>{{ message }}</p>
</div>
</template>
and my javascript-pack mentions this
import Vue from 'vue'
import VueTailwind from 'vue-tailwind'
import App from '../components/app.vue'
import {
TInput,
} from 'vue-tailwind/dist/components/'
const components = {
't-input': {
component: TInput,
props: {
classes: 'border-2 block w-full rounded text-gray-800'
}
}
}
Vue.use(VueTailwind, components)
document.addEventListener('DOMContentLoaded', () => {
const app = new Vue({
render: h => h(App)
}).$mount()
document.body.appendChild(app.$el)
console.log(app)
})
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:13 (2 by maintainers)
Top Results From Across the Web
export 'default' (imported as 'Vue') was not found in 'vue'
The reason this is happening is because in Vue 2, Vue provides a default export export default vue , which allows BootstrapVue to...
Read more >Install and configure
Learn how to install and configure vue-tailwind. VueTailwind is a set of Lightview and fully customizable Vue Components optimized for TailwindCss.
Read more >Styling Vue.js components with VueTailwind
First, install the Vue CLI with npm install -g @vue/cli . Create the app with vue create dance-directory . Do not opt for...
Read more >export 'render' (imported as 'render') was not found
The reason this is happening is because in Vue 2, Vue provides a default export export default vue , which allows BootstrapVue to...
Read more >Javascript - Export default was not found
Javascript - Export default was not found. I have a project build in Vue 2, and I made a simple function for translating...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for the input. I’ve managed to get things moving myself just now by changing my webpack config so that it doesn’t use babel-loader anymore. I have no idea what I’m doing when it comes to webpack so I just tried stuff until suddenly things worked.
@robtesch and that is boiled to the bone exactly my sentiment with regards to webpacker (and friends)
there is simply too many moving cogs and pins in that stack!
TailwindCSS is perfect - the JIT though already is forcing me to cargo-cult with 27 deps and another 17 devdeps
AlpineJS is fine too - but even that has 16 devdeps and my guess is that by June 16th it will have another 5-10 deps and this all leads straight to DLL-hell (like why I switched to mac in 2006 when I was on 8 daily reboot’s due to dll’s colliding on M$ windozes 😉