Jump to content

Need Help with loading html


tsei111
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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