framework7-plugin-keypad icon indicating copy to clipboard operation
framework7-plugin-keypad copied to clipboard

Cannot read property 'name' of undefined

Open ihabtawfig opened this issue 5 years ago • 1 comments

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

ihabtawfig avatar May 27 '20 22:05 ihabtawfig

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

DK013 avatar Aug 01 '20 06:08 DK013