Topic: Usaing mdbMasonry component
zafer inkaya asked 6 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 6 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
zafer inkaya answered 6 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 commented 6 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 6 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?
zafer inkaya answered 6 years ago
Mikołaj Smoleński staff answered 6 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
Closed
This topic is closed.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Closed
- User: 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