Uncaught TypeError: Cannot set property 'f7View' of undefined
See original GitHub issueHello, I know someone has made a similar issue but that issue thread had no helpful information.
I get this in the console of Google Chrome
Uncaught TypeError: Cannot set property ‘f7View’ of undefined framework7.js:247
My App’s JS
// Init App
var myApp = new Framework7({
modalTitle: 'My Cool App',
// Enable Material theme
material: true,
});
// Expose Internal DOM library
var $$ = Dom7;
// Add main view
var mainView = myApp.addView('.view-main', {
});
var view1 = myApp.addView('#view-1');
var view2 = myApp.addView('#view-2');
var view3 = myApp.addView('#view-3');
// Add another view, which is in right panel
var rightView = myApp.addView('.view-right', {
});
If anyone has a solution then please share below
Issue Analytics
- State:
- Created 7 years ago
- Comments:6
Top Results From Across the Web
[SOLVED] 4.0.5 - Bug in bundle.js - Questions
While debugging, this popped up. Uncaught TypeError: Cannot set property 'f7View' of undefined at new View (framework7.bundle.js:9484)
Read more >Uncaught TypeError: Cannot set property 'f7View' of ...
Hello, I know someone has made a similar issue but that issue thread had no helpful information. I get this in the console...
Read more >Cannot set property 'f7View' of undefined1 | Framework7
... I get error -- Uncaught TypeError: Cannot set property 'f7View' of undefined Body tag have -- Embedded Login Screen Open page with...
Read more >Uncaught TypeError: Cannot set property
In JavaScript if a variable has been declared, but has not been assigned a value, is automatically assigned the value undefined.
Read more >Cannot set property 'view' of undefined Extjs4
I trying to update code from extjs2 to extjs4, but I have an error and something wrong with grid . var grid =...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Neville2312 I don’t know if you figured this out, but in my case, it was simply that I was including the Framework7 javascript before the DOM. I’m using Rails–in my main layout, just by including the javascript at the end (just before the closing body tag), it solved the problem. I spent about four hours puzzling this out. sigh.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.