Jump to content

Need Help with loading html


Recommended Posts

When I load html using: 

this.load.html('form', './html/form.html');

I get an error on GET cannot find location even though my path to is correct

But if I try to do 

import form from './html/form.html';

this.load.html('form', form);

I get error on 

Module parse failed: Unexpected token (1:0)

You may need an appropriate loader to handle this file type.

> <!DOCTYPE html>

| <html>

|   <head>

 @ ./src/index.js 3:0-39 18:25-29

 @ multi (webpack)-dev-server/client?http://localhost:8080 ./src


I'm wondering what is wrong with my html import

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...