I am using Framework7 with meteor and vue and I have included framework7 like this in my main.js:
import { Meteor } from 'meteor/meteor';
import { createApp } from 'vue';
import { VueMeteor } from 'vue-meteor-tracker';
import App from './App.vue';
import { router } from './router';
import Framework7 from 'framework7/lite-bundle';
import Framework7Vue, { registerComponents } from 'framework7-vue/bundle';
Framework7.use(Framework7Vue);
const app = createApp(App);
registerComponents(app);
Meteor.startup(() => {
app.use(router);
app.use(VueMeteor);
app.mount('#app');
});
Unfortunately, the web page being rendered has no kind of framework7 control styling. I even included the css in the main.html file like this:
<link rel="stylesheet" href="./.node_modules/Framework7/framework-bundle.css">
EDIT 1: Step-by-step description of failure
- Meteor project running with vue
- install framework7 with
npm i framework7 - install framework7-vue with
npm i framework7-vue - added
import 'framework7/framework7-bundle.css(checked for its existance in node_modules folder) to main.js ==> Error is thrown:[vite] Internal server error: Missing "./framework7-bundle.css" export in "framework7" package
What am I doing wrong?
Thanks