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

Cannot find import file #2

Open
rshah opened this issue May 2, 2014 · 2 comments
Open

Cannot find import file #2

rshah opened this issue May 2, 2014 · 2 comments

Comments

@rshah
Copy link

rshah commented May 2, 2014

I tried using jeet in meteor 0.8.x.
I didnot have error when trying with normal stylus codes.
But when i tried put the jeet import, got these error when running.
Could you confirm or have minimal meteor sample?

While building the application:
error: Stylus compiler error: client/stylesheets/style.styl:1

1| @import 'packages/jeet/jeet.styl'

failed to locate @import file packages/jeet/jeet.styl

@rshah
Copy link
Author

rshah commented May 2, 2014

Ok, i managed to fix the problem.
My style.styl is located inside client/stylesheets.
So i need to use this:
@import '../../packages/jeet/jeet.styl'

Is there a way to avoid using '../../'?

@sbking
Copy link
Owner

sbking commented May 4, 2014

You could create a client/stylesheets/jeet.styl file containing:

@import '../../packages/jeet/jeet'

Then in client/stylesheets/style.styl, just add:

@import 'jeet'

Unfortunately I'm not sure how else it can be done. Jeet can be included as a build plugin for Stylus with a custom stylus package on Atmosphere like stylus-and-jeet or stylus-multi, but I made this package because I didn't like the idea of bundling every Stylus library into a monolithic package.

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

No branches or pull requests

3 participants
@rshah @sbking and others