couldn't find components after updating to v6 (configur


Topic: couldn't find components after updating to v6 (configuration based on documentation)

xdon82 pro premium asked 9 months ago

I got such error. I copied a part of the notification. What can be wrong? How to correct it? I use mdbVue with Nuxt

Of course, before update it was OK

 WARN  Compiled with 21 warnings                                                                                                         friendly-errors 23:21:08  


 WARN  in ./pages/index.vue?vue&type=script&lang=js&                                                                                     friendly-errors 23:21:08  

"export 'mdbBtn' was not found in 'mdbvue'                                                                                               friendly-errors 23:21:08  
                                                                                                                                         friendly-errors 23:21:08  

 WARN  in ./pages/index.vue?vue&type=script&lang=js&                                                                                     friendly-errors 23:21:08  

"export 'mdbCol' was not found in 'mdbvue'                                                                                               friendly-errors 23:21:08  

Mikołaj Smoleński staff answered 9 months ago

Hi there,

You're right, article about Nuxt is now updated. https://mdbootstrap.com/articles/vue/mdb-vue-nuxt-js-quick-start-guide/

Best regards


xdon82 pro premium answered 9 months ago

I solved the issue in the following way:

altered nuxt.config.js

build: {
    /*

     ** You can extend webpack config here
     */
    extend(config, ctx) {},
    transpile: ['mdbvue/lib/components']
  },

before it was (working for v5):

transpile: ['mdbvue']

Is that OK? nothing about such necessary change in doc. Hence I'm not sure If I have sth configured wrongly and that is only workaround

What is your opinion?


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: Vue
  • MDB Version: 6.0.1
  • Device: pc
  • Browser: Edge Chromium
  • OS: win10
  • Provided sample code: No
  • Provided link: No