Topic: Usaing mdbMasonry component

zafer inkaya free asked 5 years ago


I am using mdbvue Pro. I wanted to use masonry layout as documented in this website. I have been using many of the mdbvue components and I am not having any problems

Actual behavior I am getting the following errors when I compile my project with npm run serve:

"export 'Masonry' was not found in 'mdbvue' "export 'MasonryItem' was not found in 'mdbvue'

Resources (screenshots, code snippets etc.)

I included mdbvue in my project by adding the following line in the dependencies section of my package.json file:

"mdbvue": "git+https://oauth2:"myauthorizationkey"@git.mdbootstrap.com/mdb/vue/vu-pro.git",


Mikołaj Smoleński staff answered 5 years ago


Hi there again,

Is there a way to send zipped project or link to repo directly to us? We need to test it to find possible solutions. If yes, please send project to m.smolenski@mdbootstrap.com.

Best regards


zafer inkaya free answered 5 years ago


It is as follows:

"version": "5.3.0"


zafer inkaya free answered 5 years ago


I did exactly what you wanted me to do, but when I ran npm run serve on my project using visual studio code, I still got the same warning messages as follows:

WARNING Compiled with 2 warnings 10:43:35 warning in ./src/views/Library/Resources.vue?vue&type=script&lang=js&

"export 'mdbMasonry' was not found in 'mdbvue'

warning in ./src/views/Library/Resources.vue?vue&type=script&lang=js&

"export 'mdbMasonryItem' was not found in 'mdbvue'

Is there anything else that I can check?


zafer inkaya free commented 5 years ago

By the way, when I did the removal, there was a messag sayin 16 packages were removed. When I put back the line and did npm i again, there were 18 packages installed. I donot not if that may help in your analysis.


Mikołaj Smoleński staff commented 5 years ago

Please open node_modules dir, find the mdbvue inside and then open package.json. Inside it there is an info about version. Could You please check it?


Mikołaj Smoleński staff answered 5 years ago


Hi there,

I've just checked the components registration and it's correct.

I'm almost sure that the problem is connected with the version of MDB. To update to the latest version please remove the following line from package.json: "mdbvue": "git+https://oauth2:"myauthorizationkey"@git.mdbootstrap.com/mdb/vue/vu-pro.git", then type yarn or npm i, after it add the mdbvue link again and again type yarn or npm i.

Best regards


FREE CONSULTATION

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

Status

Closed

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: 5.3.0
  • Device: Notebook
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: Yes