question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: (vue) ion-accordion isn't displaying when used with vue + vite

See original GitHub issue

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x

Current Behavior

When testing in three different environments (local, CodeSandbox and Stackblitz), I haven’t been able to get theion-accordion component to display on the page. The following warning can be seen in the console when the component is used : [Vue warn]: Invalid vnode type when creating vnode: undefine.

Expected Behavior

A fully rendered ion-accordion component should be visible and ready to be interacted with once the page is fully loaded.

Steps to Reproduce

Import IonAccordion into a Vite-powered Vue 3 component and use it in the template. Please see the runnable test build on CodeSandbox.

Code Reproduction URL

https://codesandbox.io/s/github/treighmawaka/vite-vue-ionic6-starter

Ionic Info

Ionic:

Ionic CLI : 6.16.3

Utility:

cordova-res : 0.15.3 native-run (update available: 1.5.0) : 1.3.0

System:

NodeJS : v12.16.3 npm : 6.14.7 OS : macOS Big Sur

Additional Information

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
treighmawakacommented, Oct 22, 2021

@liamdebeasi thanks for the great help! I’m closing this issue – I think the lang="ts" was the cause of my drama. The accordion is finally working on my local machine as well.

Thanks again

0reactions
ionitron-bot[bot]commented, Nov 21, 2021

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vue Ionic 6 fails to run on Vite SSR dev server #7985 - GitHub
Describe the bug Hi, I am integrating Vite SSR to existing vue project. I copied vite configuration from SSR playground project and bumped ......
Read more >
Vue Ionic 6 fails to run on Vite SSR dev server - Stack Overflow
Show activity on this post. I am integrating Vite SSR to existing vue project. ... After upgrading, it isn't compiling, showing this error....
Read more >
Ionic Troubleshooting Guide: Common Vue App Development ...
This troubleshooting guide covers some of the more common issues you may run into when developing apps with Ionic Vue. Read to learn...
Read more >
Creating an Animated Accordion List Component in VueJS
Using vue animations, vue slots & HTML data attributes I walk through how to create a component that you can pass a list...
Read more >
Transition | Vue.js
Vue will automatically sniff whether the target element has CSS transitions or animations applied. If it does, a number of CSS transition classes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found