Skip to content

vue-cli-service build does not update or invalidate node_modules/.cache, resulting in broken build #2450

Closed
@marosivanco

Description

@marosivanco

Version

3.0.1

Node and OS info

node v8.9.3 / npm 6.4.1 / Windows 10

Steps to reproduce

I have the app A which has dependency B.
A uses B's sources, thus B is in vue.config.js as transpiled:

transpileDependencies: ["B"]
  • in A: vue-cli-service build --modern builds app and creates node_modules/.cache
  • in B: change code, increase version, and publish it to npm repo
  • in A: change B's version in package.json
  • in A: npm update B, which updates node_modules/B
  • in A: increase version
  • in A: vue-cli-service build --modern

What is expected?

A/dist should correspond to A's and B's sources.

What is actually happening?

A/dist is the same (same hashes, same content), as in the previous build


If I manually delete node_modules/.cache, and run the build again, then it works - the dist content corresponds to the sources.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions