[Vuejs]-Cannot find dist in node_module

0👍

Possible reasons:

  • trying to import an object from a module noy installed in your
    project directory.

  • importing something from an outdated package.

  • pointing to a file that does not exist.

As far as i can see the dist directory is not in your directory, so install the package which create the missing dist directory.

Either use:

npm install messagecomponent

or

yarn add  messagecomponent

If you still get the error then:

  1. Delete modules:

    rm -rf node_modules

  2. Delete package lock:

    rm -f package-lock.json

  3. Clean up NPM cache:

    npm cache clean –force

  4. Reinstall all packages:

    npm install

Leave a comment