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.

"export 'Ionic' was not found in '@ionic/vue'

See original GitHub issue

Bug Report

Ionic version: [x] 4.x

Current behavior: When trying to load the Ionic plugin in a Vue project, I get the following error during the build process:

"export 'Ionic' was not found in '@ionic/vue'

Expected behavior: I expected the instructions in the project README to work.

Steps to reproduce:

  1. Open an existing Vue.js project
  2. run npm install @ionic/vue --save
  3. add the following to main.js:
...
import Ionic from '@ionic/vue';

Vue.use(Ionic);
...

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

6reactions
davidquoncommented, Feb 28, 2019

Ah nm. Changing from:

import { Ionic } from '@ionic/vue';

to:

import Ionic from '@ionic/vue';

Fixed the error:

"export 'Ionic' was not found in '@ionic/vue'
1reaction
davidquoncommented, Apr 4, 2019

Yeah what I posted in https://github.com/ionic-team/ionic/issues/17607#issuecomment-468487636 fixed the error for me. At the time I was using "@ionic/vue": "0.0.1" just as a proof of concept for using Vue with Ionic. Since then I see it’s gone to Beta. 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

export 'Ionic' was not found in '@ionic/vue' #17607 - GitHub
Expected behavior: I expected the instructions in the project README to work. Steps to reproduce: ... ... import Ionic from '@ionic/vue'; Vue.use( ...
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 >
Ionic with vuex gives compile error ( Property '$store' does not ...
Found out the answer myself. I didn't wrap my component in the defineComponent function, if i change the script part in Tab1.bue from...
Read more >
Quickstart: Ionic Vue - Supabase
Quickstart: Ionic Vue. This example provides the steps to build a basic user management app. It includes: Supabase Database: a Postgres database for...
Read more >
Introduction to Ionic Vue - Beginners Guide - Enappd
Learn how to make a basic Ionic Vue application. ... This section is relevant to only those who have been working with Ionic...
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