framework7io / framework7-vue

Deprecated! Build full featured iOS & Android apps using Framework7 & Vue
http://framework7.io/vue/
MIT License
674 stars 150 forks source link

how import framework7 package ? #298

Closed TongDaDa closed 6 years ago

TongDaDa commented 6 years ago

the official said

2017-12-27 7 57 52

However, I through the import did not see anything, let alone registered window

open node_modules see framework7 except dist folder no entry file

2017-12-27 8 01 31

window.framework7 is not defined. i have already import framework7 , why isn't framework7 ?

TongDaDa commented 6 years ago

Excuse me, How to use this import to introduce framework7 ?

caiobiodere commented 6 years ago

Did you fix this error? i had the same problem here

cornelisse commented 6 years ago

I am not an expert but perhaps if you change the following lines

import Framework7 from 'framework7/dist/framework7.esm.bundle.js'
import Framework7Vue from 'framework7-vue/dist/framework7-vue.esm.bundle.js'

and Vue.use(Framework7Vue) into Vue.use(Framework7Vue, Framework7) This works for version v2.

Ps, This kind of question are more suitable to ask at the F7 forum