Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
265 views
in Technique[技术] by (71.8m points)

reactjs - Content not from webpack is served from in react

I just created one simple react app. after npm start nothing was served in the web browser.

**> firstapp@0.1.0 start E:ProjectsReactProjectfirstapp

react-scripts start i ?wds?: Project is running at http://192.168.43.128/ i ?wds?: webpack output is served from i ?wds?: Content not from webpack is served from E:ProjectsReactProjectfirstapppublic i ?wds?: 404s will fallback to /**

question from:https://stackoverflow.com/questions/65895102/content-not-from-webpack-is-served-from-in-react

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Hi I need more information on your file structure because simply having Webpack with loaders is not enough for setting up a server.

You could refer to some open source projects to see how they have set it up

https://github.com/sanyuan0704/react-cloud-music

Please let me now if you have the file structure. Thanks


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...