# Error with webpack

Hi. I have tried install react with node with this video -

But when I was trying to run it, I find some mistake:
ERROR in Entry module not found: Error: Can’t resolve ‘D:\react\reactapp.js’ in 'D:\re
act

There is my file:
https://github.com/SerafimPoch/React--error---

npm mod you could see in video.
If you find a solution to fix my problem - please write it.Thank you.

Line 5 of the webpack config, I think you meant to write `/app.js`

2 Likes

I’ve change but still not working))

try

``````path.resolve(__dirname, 'react', 'app.js')
``````

same goes for output

1 Like

Instead of react I wrote entry: path.resolve(__dirname, ‘app.js’) + '’,

I wrote entry: path.resolve(__dirname, ‘app.js’) + “”, something is working. But localhost:1234 still not))

Did you try \app.js? Double check that your path is correct. D:\react\react\app.js

`````` entry: path.resolve(__dirname, 'react') + '\app.js'
``````

Yes. I just wrote entry: path.resolve(__dirname, ‘app.js’) + “”, and I think it’s working

Is the dev server working?

since you don’t have subfolder with static files, remove `publicPath` prop.

How can I see work server or not? Sorry for stupid question. Today I’m just starting to use it)

I’ve remove public prop but I have errors.Then I remove all 9 line and erros are gone. Maybe I should change index.html Because I delete publicpath?

I’d suggest you to keep the same folder structure as the one from video tut. You’d have a lot less hassle with setting this thing up.

It’s true

Yes.Server is Working.

1 Like