Closed arrmixer closed 7 years ago
In the webpack.config.js file, I had to use my absolute path when referring to my output file. I got this error message:
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. configuration.output.path: The provided value "myMern/static" is not an absolute path!
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
Thus, ./static didn't work for me I had to write out my whole path. Is this just machine specific?
here is my package.json file:
{ "name": "my-mern-project", "version": "1.0.0", "description": "Pro Mern Stack", "main": "index.js", "scripts": { "build": "babel src --presets react --out-dir static", "compile": "webpack", "watch": "webpack --watch", "start": "nodemon -w server server/server.js", "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", "url": "git+https://github.com/arrmixer/my-mern-project.git" }, "keywords": [ "mern" ], "author": "Angel Rodriguez", "license": "ISC", "homepage": "https://github.com/arrmixer/my-mern-project#readme", "dependencies": { "body-parser": "^1.17.2", "express": "^4.15.3", "mongodb": "^2.2.29" }, "devDependencies": { "babel-cli": "^6.24.1", "babel-core": "^6.25.0", "babel-loader": "^7.1.1", "babel-preset-es2015": "^6.24.1", "babel-preset-react": "^6.24.1", "nodemon": "^1.11.0", "webpack": "^3.0.0" } }
I'm using webpack 3.0 and babel-loader 7.1.1.
I fixed the issue I'm using webpack 3.0
In the webpack.config.js file, I had to use my absolute path when referring to my output file. I got this error message:
Thus, ./static didn't work for me I had to write out my whole path. Is this just machine specific?
here is my package.json file:
I'm using webpack 3.0 and babel-loader 7.1.1.