Skip to content

Cannot find module while using Parcel bundler #16

@mirkea

Description

@mirkea

I have a simple .less file that contains

@import "../../node_modules/bootstrap-less-port/less/_mixins";
@import "../../node_modules/bootstrap-less-port/less/_functions";

and I get errors such as

Cannot find module './plugins/theme-color-level' from '<PROJECT_PATH>/node_modules/bootstrap-less-port/less'

I tried tweaking around with those files and it looks like adding ".js" when mentioning plugin paths fixes the issue. For example

@plugin "../plugins/breakpoints";

would cause an error while

@plugin "../plugins/breakpoints.js";

would work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions