[SOLVED] 4.0.5 - Bug in bundle.js

While debugging, this popped up.

Uncaught TypeError: Cannot set property ‘f7View’ of undefined
at new View (framework7.bundle.js:9484)
at Array.create (framework7.bundle.js:11647)
at startup.js:33

This happen when I do this: var homeView = app.views.create(’#view-main’);
But when I do this the issue goes away: var homeView = app.views.create(’.view-main’);
There was no id on the element …