Skip to content

Running server without Browser Refresh not working. #57

Description

@poncho-guerrero

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions