Skip to content

[vite] Internal server error: Failed to resolve import "vue-nprogress/src/NprogressContainer" from "src/App.vue". Does the file exist? #27

@gustawdaniel

Description

@gustawdaniel

This import

import NprogressContainer from 'vue-nprogress/src/NprogressContainer';

does not works with vite but .vue leads to error

[vite] Internal server error: [postcss] ENOENT: no such file or directory, open '~nprogress/nprogress.css'

because of ~ has different convention in webpack and vite from https://stackoverflow.com/a/74154405/6398044

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions