Skip to content

Mixins are no longer globally available? #17779

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

Closed
Bengejd opened this issue Mar 13, 2019 · 2 comments
Closed

Mixins are no longer globally available? #17779

Bengejd opened this issue Mar 13, 2019 · 2 comments
Labels

Comments

@Bengejd
Copy link

Bengejd commented Mar 13, 2019

Bug Report

Ionic version: -->
[x] 4.x

Current behavior:
You cannot access global mixins imported into the global.scss file, without having to manually import their relative path into the component you want to use them in.

Expected behavior:
When you go to import a mixin that is imported into the global.scss file, you would expect it to be used globally without having to manually import the mixin file into the component that you want to use it in. This was how it worked in Ionic V2, V3 but for whatever reason, it is not accessable in V4 without having to manually import them everytime...

Steps to reproduce:
Create a mixin.scss file, import it into globabl.scss, and attempt to use it in a component/page. Then you'll be met with an error.

@ionitron-bot ionitron-bot bot added the triage label Mar 13, 2019
@brandyscarney
Copy link
Member

Thanks for the issue! As of Ionic 4, Ionic no longer ships with custom Angular build tools. We let Angular (or the framework of your choice) handle compiling the Sass. Here's an issue for the Angular CLI that may help explain it: angular/angular-cli#3700

Here is a comment on a different issue that explains how to make it easier to reference the file without writing out a relative path: angular/angular-cli#1253 (comment)

Please create an issue on one of the Angular repositories for any build issues you experience.

Thanks!

@ionitron-bot
Copy link

ionitron-bot bot commented Apr 13, 2019

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Apr 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants