node.js - Error in ReactJS setup in Ubuntu 16.04 -


i tried follow https://www.tutorialspoint.com/reactjs/reactjs_environment_setup.htm inorder setup reactjs in device has ubuntu 16.04.

in end tried npm start results me following error

> reactjs@1.0.0 start /var/www/html/reactjs > webpack-dev-server --hot  invalid configuration object. webpack has been initialised using configuration object not match api schema.  - configuration.output.path: provided value "./" not absolute path!  npm err! linux 4.10.0-28-generic npm err! argv "/usr/bin/nodejs" "/usr/bin/npm" "start" npm err! node v4.2.6 npm err! npm  v3.5.2 npm err! code elifecycle npm err! reactjs@1.0.0 start: `webpack-dev-server --hot` npm err! exit status 1 npm err!  npm err! failed @ reactjs@1.0.0 start script 'webpack-dev-server --hot'. npm err! make sure have latest version of node.js , npm installed. npm err! if do, problem reactjs package, npm err! not npm itself. npm err! tell author fails on system: npm err!     webpack-dev-server --hot npm err! can information on how open issue project with: npm err!     npm bugs reactjs npm err! or if isn't available, can info via: npm err!     npm owner ls reactjs npm err! there additional logging output above.  npm err! please include following file support request: npm err!     /var/www/html/reactjs/npm-debug.log 

my package.json file

{   "name": "reactjs",   "version": "1.0.0",   "description": "",   "main": "index.js",   "scripts": {     "start": "webpack-dev-server --hot"   },   "author": "",   "license": "isc",   "dependencies": {     "react": "^15.6.1",     "webpack": "^3.5.4",     "webpack-dev-server": "^2.7.1"   } } 

the straight forward error message ever.

you can't use relative path in output (i don't remember wheather possible in previous versions of webpack). docs.

output: {    path: require('path').resolve(__dirname, './path/to/build/folder'), 

Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -