Skip to content

Unable to build a project on Windows #283

@lesnyrysiek

Description

@lesnyrysiek

Hello, I've tried to build a project on Windows, however I've got the following error during the build:

thread '' panicked at src/injector.rs:65:13:
dir: C:\Projects\sample-project; p: ./sample-component.module.css; filepath:
C:\Projects\sample-project/sample-component.module.css
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
× failed to invoke plugin on 'Some("src\components\sample-component.tsx")'

Not only it omits src/components directory for the CSS file, it also doesn't transform the slashes to backslashes. The correct absolute address of the CSS file should be: C:\Projects\sample-project\src\components\sample-component.module.css.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions