Vee Validate error , This dependency was not found vee-validate in ./src/utils/vee-validate.ts
albertomenen opened this issue · 1 comments
albertomenen commented
What happened?
When Im trying to upload my app to docker, the system says that the vee-validate dependency is not found even tho there is no changes in the code we primarly use for this.
Reproduction steps
- Type the sudo make in the repository.
- The error appears saying that you need to upload vee-validate
- Even thought if you run the commando npm install --save vee-validate, the program give you the error all the time.
...
Version
Vue.js 2.x and vee-validate 3.x
What browsers are you seeing the problem on?
- Firefox
- Chrome
- Safari
- Microsoft Edge
Relevant log output
=> ERROR [build 13/13] RUN yarn build 44.2s
------
> [build 13/13] RUN yarn build:
#0 0.364 yarn run v1.22.19
#0 0.391 $ vue-cli-service build
#0 1.065
#0 1.067 - Building for production...
#0 44.02 ERROR Failed to compile with 1 error1:46:41 PM
#0 44.02
#0 44.03 This dependency was not found:
#0 44.03
#0 44.03 * vee-validate in ./src/utils/vee-validate.ts
#0 44.03
#0 44.03 To install it, you can run: npm install --save vee-validate
#0 44.03 ERROR Build failed with errors.
#0 44.16 error Command failed with exit code 1.
#0 44.16 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
------
Dockerfile:27
--------------------
25 |
26 | COPY . .
27 | >>> RUN yarn build
28 |
29 | FROM nginx:stable-alpine
--------------------
ERROR: failed to solve: process "/bin/sh -c yarn build" did not complete successfully: exit code: 1
ERROR: Service 'client' failed to build : Build failed
Demo link
NA
Code of Conduct
- I agree to follow this project's Code of Conduct
logaretm commented
Hard to debug this without a real reproduction. Can you provide a minimal reproduction for this? Will re-open once you do and if it is indeed an issue with vee-validate.
I'm guessing it's that the node_modules wasn't copied before you ran the build command.