reddice icon indicating copy to clipboard operation
reddice copied to clipboard

Issue with bundle.js

Open virendav9791 opened this issue 7 years ago • 3 comments

I have watch the second video from : https://www.youtube.com/watch?v=e0dN1w1gJJM&t=273s

I have followed the steps but i am getting below error, because bundle.js return html. bundle.js:1 Uncaught SyntaxError: Unexpected token <

Can you please help me to resolve it.

Thanks, Viren Dave

virendav9791 avatar Oct 30 '17 08:10 virendav9791

@virendav9791 need in to webpack.config.dev.js set "filename"

output: { filename: 'bundle.js', path: '/' },

Inglsmit avatar Nov 17 '17 17:11 Inglsmit

Thanks @Inglsmit ... I came across the same problem. Can you tell me why i need to add "filename" explicitly?

ab1hi2shek avatar Mar 07 '18 10:03 ab1hi2shek

@ab1hi2shek becouse this video tutorial > 1year old. We get a new version Webpack, which has other settings. In the process of passing there will be more difficulties. See comments under video, there must be a solution to the problems related to incompatibility of versions

Inglsmit avatar Mar 07 '18 16:03 Inglsmit