InfinetyEs / Nova-Filemanager

A Filemanager tool for Laravel Nova
https://infinetyes.github.io/Nova-Filemanager
MIT License
219 stars 95 forks source link

Error when building #183

Closed bilogic closed 2 years ago

bilogic commented 2 years ago
 ERROR  Failed to compile with 1 errors                                                                    6:19:52 PM

This dependency was not found:

* v-viewer/src/component.vue in ./node_modules/babel-loader/lib?{"cacheDirectory":true,"presets":[["env",{"modules":false,"targets":{"browsers":["> 2%"],"uglify":true}}]],"plugins":["transform-object-rest-spread",["transform-runtime",{"polyfill":false,"helpers":false}]]}!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./resources/js/modules/Image.vue

To install it, you can run: npm install --save v-viewer/src/component.vue
            Asset     Size  Chunks                    Chunk Names
/dist/js/field.js  3.32 MB       0  [emitted]  [big]  /dist/js/field
 /dist/js/tool.js  3.22 MB       1  [emitted]  [big]  /dist/js/tool

ERROR in ./node_modules/babel-loader/lib?{"cacheDirectory":true,"presets":[["env",{"modules":false,"targets":{"browsers":["> 2%"],"uglify":true}}]],"plugins":["transform-object-rest-spread",["transform-runtime",{"polyfill":false,"helpers":false}]]}!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./resources/js/modules/Image.vue
Module not found: Error: Can't resolve 'v-viewer/src/component.vue' in '/media/sf_www/stage/package-repo/packages/infinety-es/Nova-Filemanager/resources/js/modules'
 @ ./node_modules/babel-loader/lib?{"cacheDirectory":true,"presets":[["env",{"modules":false,"targets":{"browsers":["> 2%"],"uglify":true}}]],"plugins":["transform-object-rest-spread",["transform-runtime",{"polyfill":false,"helpers":false}]]}!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./resources/js/modules/Image.vue 45:0-48
 @ ./resources/js/modules/Image.vue
 @ ./node_modules/babel-loader/lib?{"cacheDirectory":true,"presets":[["env",{"modules":false,"targets":{"browsers":["> 2%"],"uglify":true}}]],"plugins":["transform-object-rest-spread",["transform-runtime",{"polyfill":false,"helpers":false}]]}!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./resources/js/field/FormField.vue
 @ ./resources/js/field/FormField.vue
 @ ./resources/js/field.js
 @ multi ./resources/js/field.js

ERROR in ./node_modules/plyr/dist/plyr.min.js
Module parse failed: Unexpected token (1:10017)
You may need an appropriate loader to handle this file type.

I keep getting these 2 errors when building.

  1. Adding v-viewer into my package.json did not help.
  2. Don't know where to begin with the 2nd one...
bilogic commented 2 years ago
  1. Rewrote as import { component } from 'v-viewer';
  2. Forced plyr to use the latest version

See #184