Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[vue-jest] Error: Vue template compilation failed on less file using relative import #350

Copy link
Copy link
Open
@YutamaKotaro

Description

@YutamaKotaro
Issue body actions

Hi!!
I got this error in 5.0.0-alpha.10.

FileError: './styles/less-a.less' wasn't found. Tried - ./styles/less-a.less,styles/less-a.less in input on line 3, column 1:
2
3 @import './styles/less-a.less';
4 .a {


FAIL ./test.js
  ● Test suite failed to run


    [vue-jest] Error: Vue template compilation failed

      126 |
      127 | const throwError = function error(msg) {
    > 128 |   throw new Error('\n[vue-jest] Error: ' + msg + '\n')
          |         ^
      129 | }
      130 |
      131 | const stripInlineSourceMap = function(str) {

Using relative import in less file caused this issue.
I created PR for this issue #349 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.