Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Less relative path in imports #475

Merged
merged 2 commits into from
Aug 16, 2022
Merged

Conversation

cmath10
Copy link
Contributor

@cmath10 cmath10 commented May 22, 2022

Hello! I noticed that this change was added only for vue3. This PR adds the same less processing as it is in vue3-jest. Without this patch, I'm catching this:

SyntaxError: undefined in input on line 334, column 1:
333 @import (reference) "../../../../../../css/less/variables.less";
334 @import (reference) "../../../../../../css/less/mixins.less";
335 

  ● Test suite failed to run


    [vue-jest] Error: Vue template compilation failed

      at error (../node_modules/@vue/vue2-jest/lib/utils.js:122:9)
      at logResultErrors (../node_modules/@vue/vue2-jest/lib/utils.js:134:5)
      at processStyle (../node_modules/@vue/vue2-jest/lib/process-style.js:104:5)
      at ../node_modules/@vue/vue2-jest/lib/process.js:87:13
          at Array.map (<anonymous>)
      at processStyle (../node_modules/@vue/vue2-jest/lib/process.js:86:6)
      at Object.module.exports [as process] (../node_modules/@vue/vue2-jest/lib/process.js:103:24)
      at ScriptTransformer.transformSource (../node_modules/@jest/transform/build/ScriptTransformer.js:612:31)
      at ScriptTransformer._transformAndBuildScript (../node_modules/@jest/transform/build/ScriptTransformer.js:758:40)
      at ScriptTransformer.transform (../node_modules/@jest/transform/build/ScriptTransformer.js:815:19)
      at Object.<anonymous> (...)

@lmiller1990
Copy link
Member

Thanks!

@lmiller1990 lmiller1990 merged commit 77c821d into vuejs:master Aug 16, 2022
@lmiller1990
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants