question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught TypeError: Cannot set property 'f7View' of undefined

See original GitHub issue

Hello, 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:closed
  • Created 7 years ago
  • Comments:6

github_iconTop GitHub Comments

7reactions
pdbradleycommented, Sep 8, 2016

@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.

0reactions
lock[bot]commented, Jun 25, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found