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

xdon82 free asked 4 years 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 4 years 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 free answered 4 years 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.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: 6.0.1
  • Device: pc
  • Browser: Edge Chromium
  • OS: win10
  • Provided sample code: No
  • Provided link: No