Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when building #183

Closed
bilogic opened this issue May 23, 2022 · 1 comment
Closed

Error when building #183

bilogic opened this issue May 23, 2022 · 1 comment

Comments

@bilogic
Copy link

bilogic commented May 23, 2022

 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
Copy link
Author

bilogic commented May 23, 2022

  1. Rewrote as import { component } from 'v-viewer';
  2. Forced plyr to use the latest version

See #184

@bilogic bilogic closed this as completed May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant