question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vue Single File Component. Ignore imports in style part.

See original GitHub issue

I use SFC in Vue.

I try to analyze my project with the tool. It works fine! But if I use @import statement with alias in style section I get an error. E.g.

no-non-package-json: src/Component.vue → styleGuide/vars/colors

How can I tell dependency-cruiser do not resolve @import statement?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sverweijcommented, Dec 10, 2019

Thanks for validating @AlexanderShushunov - I’ll try to merge it and publish it as @latest (version 6.0.0, most probably) later this week.

0reactions
sverweijcommented, Dec 10, 2019

(It’s published)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vue Single File Components Not Showing Styles
Vue renders the component correctly, and everything seems to be fine, but it's completely ignoring my style tags. Here's my test.vue: <template> ...
Read more >
Importing Style Files to Component Style Tags in Vue.js
Another way of importing styles from a separate file is to write a src declaration in the style tag, referencing the style file...
Read more >
Styling Vue Single-File Components - This Dot Labs
Single -File Components allow developers to group code together in more logical ways, rather than breaking up components by language utilized ( ...
Read more >
Single-File Components - Vue.js
Inside a component, its template, logic, and styles are inherently coupled, and colocating them actually makes the component more cohesive and maintainable.
Read more >
Styling Vue components with CSS - Learn web development
Global styles in Single File Components ( .vue files). ... Next, in your src/main.js file, import the reset.css file like so: import "....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found