Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Fail to import a LESS sheet inside a vue file #97

Closed
@aleksejevski

Description

@aleksejevski

Expected behavior

These code should work correctly:

<style lang="less">
  @import "../assets/block";
</style>

Actual behavior

Compiling the vue file failed with these words:

�   (vue plugin) '../assets/block.less' wasn't found. Tried - ../assets/block.less,..\assets\block.less
src\components\block.vue

The file "../assets/block.less" really exists. I have tried importing the file in the form below, but it still doesn't work:

<style lang="less">
  @import "..\assets\block";
</style>

Just such thing is returned:

�   (vue plugin) '..\assets\block.less' wasn't found. Tried - ..\assets\block.less,..\assets\block.less
src\components\block.vue

Steps to reproduce the behavior

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions