Hello. Please help! I’m a beginner. I’ve been trying to fix this, but I can’t figure it out… I’m trying to create my first Ionic Vue project, but I’m running into some trouble with Ionic.
It’s probably something really silly, but here it goes…
Creating a Vue project was smooth, with no errors.
Adding Ionic to that Vue project returns the following warning:
warning in ./node_modules/@ionic/vue/dist/ionic-vue.esm.js
export ‘ICON_PATHS’ was not found in ‘ionicons/icons’
This is what’s in the >main.js file:
import ‘@ionic/core/css/core.css’;
import ‘@ionic/core/css/ionic.bundle.css’;
import Vue from ‘vue’
import IonicVue from ‘@ionic/vue’;
import App from ‘./App.vue’
Vue.config.productionTip = false;
Vue.use(IonicVue);
new Vue({
render: h => h(App),
}).$mount(‘#app’)
Only when I add the code for Ionic in the main.js file does the error occur. Also note, the Vue ‘Welcome to Your Vue.js App’ template App goes blank.
Any help with this is greatly appreciated. Gratitude
ionic info:
[WARN] You are not in an Ionic project directory. Project context may be missing.
Ionic:
Ionic CLI : 5.2.0
Utility:
cordova-res : not installed
native-run : not installedSystem:
NodeJS : v10.16.0
npm : 6.9.0
OS : macOS Mojave
package.json:
{
“name”: “vue-ionic-tester”,
“version”: “0.1.0”,
“private”: true,
“scripts”: {
“serve”: “vue-cli-service serve”,
“build”: “vue-cli-service build”,
“lint”: “vue-cli-service lint”
},
“dependencies”: {
“@ionic/core”: “^4.6.0”,
“@ionic/vue”: “0.0.4”,
“core-js”: “^2.6.5”,
“vue”: “^2.6.10”,
“vue-router”: “^3.0.3”
},
“devDependencies”: {
“@vue/cli-plugin-babel”: “^3.8.0”,
“@vue/cli-plugin-eslint”: “^3.8.0”,
“@vue/cli-service”: “^3.8.0”,
“babel-eslint”: “^10.0.1”,
“eslint”: “^5.16.0”,
“eslint-plugin-vue”: “^5.0.0”,
“vue-template-compiler”: “^2.6.10”
},
“eslintConfig”: {
“root”: true,
“env”: {
“node”: true
},
“extends”: [
“plugin:vue/essential”,
“eslint:recommended”
],
“rules”: {},
“parserOptions”: {
“parser”: “babel-eslint”
}
},
“postcss”: {
“plugins”: {
“autoprefixer”: {}
}
},
“browserslist”: [
“> 1%”,
“last 2 versions”
]
}