Skip to content

Module not found: Can't resolve './alert' in '/mydirectory/node_modules/bootstrap/scss' #567

@adrian2020my

Description

@adrian2020my

I use @import "~bootstrap/scss/bootstrap"; in my custom.scss but when webpack tries to compile, the following error appears:

Failed to compile.

./node_modules/bootstrap/scss/bootstrap.scss
Module not found: Can't resolve './alert' in 'mydirectory/node_modules/bootstrap/scss'

Please kindly advise on resolving this issue as I'm not able to customise my css using mixins from bootstrap.

My webpack.config file is as below:
webpack.config.txt

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