Failed to compile on Stand-Alone Project
See original GitHub issue- Laravel Mix Version: 0.12.1 (
npm list --depth=0
) - Node Version (
node -v
): v7.8.0 - NPM Version (
npm -v
): 4.2.0 - OS: macOS Sierra 10.12.5
Description:
Failed to compile on non-laravel project
Steps To Reproduce:
mkdir my-app && cd my-app
npm init -y
npm install laravel-mix --save-dev
cp -r node_modules/laravel-mix/setup/** ./
Configuration:
webpack.mix.js
let mix = require('laravel-mix');
mix.js('src/app.js', 'build/')
.sass('src/app.scss', 'build/');
package.json
{
"name": "rating",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"dev": "cross-env NODE_ENV=development webpack --progress --hide-modules",
"watch": "cross-env NODE_ENV=development webpack --watch --progress --hide-modules",
"hot": "cross-env NODE_ENV=development webpack-dev-server --inline --hot",
"production": "cross-env NODE_ENV=production webpack --progress --hide-modules"
},
"devDependencies": {
"laravel-mix": "^0.12.1"
}
}
Error
uonick ~/Projects/rating $ npm run dev
> rating@1.0.0 dev /Users/uonick/Projects/rating
> cross-env NODE_ENV=development webpack --progress --hide-modules
/Users/uonick/Projects/rating/node_modules/webpack/bin/convert-argv.js:492
throw new Error("'output.filename' is required, either in config file or as --output-filename");
^
Error: 'output.filename' is required, either in config file or as --output-filename
at processOptions (/Users/uonick/Projects/rating/node_modules/webpack/bin/convert-argv.js:492:11)
at processConfiguredOptions (/Users/uonick/Projects/rating/node_modules/webpack/bin/convert-argv.js:141:4)
at module.exports (/Users/uonick/Projects/rating/node_modules/webpack/bin/convert-argv.js:117:10)
at Object.<anonymous> (/Users/uonick/Projects/rating/node_modules/webpack/bin/webpack.js:153:40)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
expo build:android Build failed. Standalone build failed! #1450
I'm creating expo build:android. ✖ Build failed. Standalone build failed! Expected Behavior. It will export apk project. Observed Behavior.
Read more >Maven build Compilation error : Failed to execute goal org ...
I have a maven project forked and cloned from a git repo onto my eclipse. ... No matter how many times I build...
Read more >Error: Standalone Build Failed while building apk - Expo Forums
I am a beginner and trying to build my first app. I get this error when I try to build: Standalone build failed...
Read more >Offline Unable to compile - MIT App Inventor Help
Hello,my project is unable to compile using offline app inventor(i try all versionslast one 3.9).In online version there is no problem with ...
Read more >App Won't Compile with Embedded Third Party Framework
So, I'm getting this error when trying to run the app. "Build succeeds" but the app won't run and Xcode spits out an...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
See https://github.com/JeffreyWay/laravel-mix/pull/870
Found a solution: in
package.json
:--config=node_modules/laravel-mix/setup/webpack.config.js
was added