Skip to content
This repository has been archived by the owner on Sep 2, 2019. It is now read-only.

webpack-dev-server version not found #3

Closed
mariomka opened this issue Nov 16, 2017 · 3 comments
Closed

webpack-dev-server version not found #3

mariomka opened this issue Nov 16, 2017 · 3 comments

Comments

@mariomka
Copy link

It seems that the webpack-dev-server version saved in yarn.lock not exists, maybe it necessary to do yarn update.

error An unexpected error occurred: "https://registry.yarnpkg.com/webpack-dev-server/-/webpack-dev-server-2.7.0.tgz: Request failed \"404 Not Found\"".

@abkrim
Copy link

abkrim commented Nov 17, 2017

Same for me.
Possible problem version with regression 2.7.0

@abkrim
Copy link

abkrim commented Nov 17, 2017

For me rm -R yarn*and run rm -f package-lock.json and after run yarninstall sole first problem.

But now

yarn run dev
yarn run v1.3.2
$ cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
/Users/abkrim/Sites/spoon/webpack.mix.js:3
mix.config.uglify.compress.drop_console = false;
                                        ^

TypeError: Cannot set property 'drop_console' of undefined
    at Object.<anonymous> (/Users/abkrim/Sites/spoon/webpack.mix.js:3:41)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/abkrim/Sites/spoon/node_modules/laravel-mix/setup/webpack.config.js:9:1)
    at Module._compile (module.js:570:32)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Also see several problems with laravel-mix and older versiones...
Offuscated.

@sebastiandedeyne
Copy link
Member

The webpack version didn't exist anymore, so I updated to the dependencies to resolve that issue.

Regarding the drop_console line, Laravel Mix did a breaking change in their configuration. I simply removed the line since I didn't deem the functionality necessary anymore.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants