christianalfoni / webpack-express-boilerplate

A boilerplate for running a Webpack workflow in Node express
MIT License
1.4k stars 292 forks source link

Unexpected Token < ... bundle.js #70

Closed NigelEarle closed 7 years ago

NigelEarle commented 7 years ago

Everything seems to be working great! Just getting a single error...

screen shot 2017-02-09 at 10 35 05 am

And when I open it up, the console tells me...

screen shot 2017-02-09 at 10 36 54 am

Has anyone ran into this error before? Thanks!

NigelEarle commented 7 years ago

Ah got it. Had to remove the script tag in my index.html file, manually referencing my bundle at /build/bundle.js. HtmlWebpackPlugin() inserts the script tag in the body in reference to the bundle. The more you know...lol

YuliBlanco commented 7 years ago

Hi! I have the same problem

this is my code

<!doctype html>

Reduxstagram

and the reduxstagram.js here

import React from 'react'; import {render} from 'react-dom'; import css from './styles/style.css'

render (

prueba

, document.getElementById('root'));

if you can helpme; textme please!