Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running server without Browser Refresh not working. #57

Open
poncho-guerrero opened this issue Apr 30, 2019 · 1 comment
Open

Running server without Browser Refresh not working. #57

poncho-guerrero opened this issue Apr 30, 2019 · 1 comment

Comments

@poncho-guerrero
Copy link

poncho-guerrero commented Apr 30, 2019

Hello, I'm using Marko.js, Lasso.js and npm library load-google-maps-api. I'm doing a test app with just one page.

index.marko

import loadGoogleMapsApi from 'load-google-maps-api'

class {
  onMount() {
    // Google Maps API Stuff
  }
}

lasso-page package-path="./browser.json"
<!DOCTYPE html>
html
  head
    title -- App
    lasso-head
  body
    div.search-container.location-search
      div.input-field
        p.input-label -- Search
        input#pac-input.controls type="text" placeholder="Search Box"
      div#map
lasso-body
browser-refresh

When I access this page using broswer-refresh server.js everything works fine. I can see the map on screen, search for places and add markers. But when I run node server.js it doesn't work anymore, I can't see the map and a simple log in the onMount() method is not shown in the console. Instead, I get this error message: Uncaught DOMException: Failed to execute 'insertBefore' on 'Node': Nodes of type '#text' may not be inserted inside nodes of type '#document'.
Thank you.

@BlakeBrown
Copy link

Sounds like your node setup is wrong, you're not rendering the file with marko or lasso

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants