framework7io / framework7-plugin-keypad

Keypad plugin extends Framework7 with additional custom keyboards
http://framework7.io/plugins/
MIT License
75 stars 43 forks source link

Cannot read property 'name' of undefined #28

Open ihabtawfig opened 4 years ago

ihabtawfig commented 4 years ago

Hi I am trying to use kepad for v5 as follows:

import Framework7 , {Template7} from 'framework7/framework7.esm.bundle.js';
Framework7.use(Framework7Keypad);

var app = new Framework7({
......

but app won't start and always gives:

class.js:150 Uncaught TypeError: Cannot read property 'name' of undefined
    at Function.installModule (class.js:150)

What could be the reason ? thanks

DK013 commented 4 years ago

Looks like the esm bundle is missing from the dist frolder on v3.0.1 release So the f7 can't find the module. simple use import 'framework7-plugin-keypad/dist/framework7-keypad.min.js'; That worked for me