You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import Hello from './Hello.JSX';
import World from './World.JSX';
i get the following error
webpack-dev-server --progress --colors
http://localhost:8080/webpack-dev-server/
webpack result is served from /
content is served from C:\Learning\Projects\React
loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
Hash: 6d152ff83dc0a532b2cd
Version: webpack 2.2.1
Time: 15299ms
Asset Size Chunks Chunk Names
bundle.js 3.47 kB 0 [emitted] main
chunk {0} bundle.js (main) 826 bytes [entry] [rendered]
[0] ./Hello.JSX 273 bytes {0} [built] [failed] [1 error]
[1] ./World.JSX 273 bytes {0} [built] [failed] [1 error]
[2] ./main.js 280 bytes {0} [built]
ERROR in ./Hello.JSX
Module parse failed: C:\Learning\Projects\React\Hello.JSX Unexpected token (6:9)
You may need an appropriate loader to handle this file type.
| class Hello extends React.Component {
| render(){
| return <h1>Hello</h1>
| }
| }
@ ./main.js 3:13-35
ERROR in ./World.JSX
Module parse failed: C:\Learning\Projects\React\World.JSX Unexpected token (6:9)
You may need an appropriate loader to handle this file type.
| class World extends React.Component {
| render(){
| return <h1>World</h1>
| }
| }
The text was updated successfully, but these errors were encountered:
I have the same problem
My webpack.config.js looks like below
here is my package.json file
My main.js file
i get the following error
The text was updated successfully, but these errors were encountered: