ctf0 / Laravel-Media-Manager

A "Vuejs & Laravel" Media Manager With Tons of Features
MIT License
829 stars 179 forks source link

Tried everything so far #39

Closed marcellopato closed 6 years ago

marcellopato commented 6 years ago

laravel new midia <-- OK (Laravel 5.6) composer require ctf0/media-manager <- OK php artisan vendor:publish --provider="ctf0\MediaManager\MediaManagerServiceProvider" <- OK

The script added: // MediaManager ctf0\MediaManager\MediaRoutes::routes();

npm install vue vue-ls vue-tippy@v1 vue2-filters vue-bounty vue-notif vue-clipboard2 vue-awesome vue-touch@next idb-keyval axios dropzone cropperjs keycode babel-preset-es2015-node6 babel-preset-stage-2 --save . <- OK

Added require('../vendor/MediaManager/js/manager') to app.js file . <- OK

npm run watch

ERROR!!!!

172-0-1-124:midia marcellopato$ npm run watch

> @ watch /Users/marcellopato/Sites/midia
> npm run development -- --watch

> @ development /Users/marcellopato/Sites/midia
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js "--watch"

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration.entry should be one of these:
   object { <key>: non-empty string | [non-empty string] } | non-empty string | [non-empty string] | function
   -> The entry point(s) of the compilation.
   Details:
    * configuration.entry['/js/app'] should be a string.
      -> The string is resolved to a module which is loaded upon startup.
    * configuration.entry['/js/app'] should not contain the item '/Users/marcellopato/Sites/midia/resources/assets/js/app.js' twice.
    * configuration.entry should be a string.
      -> An entry point without name. The string is resolved to a module which is loaded upon startup.
    * configuration.entry should be an array:
      [non-empty string]
    * configuration.entry should be an instance of function
      -> A Function returning an entry object, an entry string, an entry array or a promise to these things.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js "--watch"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @ development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/marcellopato/.npm/_logs/2018-04-13T20_57_09_027Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ watch: `npm run development -- --watch`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @ watch script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/marcellopato/.npm/_logs/2018-04-13T20_57_09_060Z-debug.log
172-0-1-124:midia marcellopato$ 

Can anyone help me, please?

ctf0 commented 6 years ago

have u added this https://ctf0.wordpress.com/2017/09/12/laravel-mix-es6/ ?

marcellopato commented 6 years ago

Yes, i did. Can't figure what could be...

ctf0 commented 6 years ago

maybe this

    * configuration.entry['/js/app'] should not contain the item '/Users/marcellopato/Sites/midia/resources/assets/js/app.js' twice.