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

Can't import from node_modules #250

Closed
dnish opened this issue May 22, 2017 · 8 comments
Closed

Can't import from node_modules #250

dnish opened this issue May 22, 2017 · 8 comments

Comments

@dnish
Copy link

dnish commented May 22, 2017

Hey,
I try to import a .scss file within client/imports.scss:

@import '{}/node_modules/normalize-scss/sass/_normalize.scss';

App crashes with error:

/client/imports.scss: Scss compiler error: File to import: {}/node_modules/normalize-scss/sass/_normalize.scss not found in file: /Users/dennis/Desktop/Entwicklung/myapp/myapp/{}/client/imports.scss

But the path exists within the node_modules directory. Any idea what's going wrong?

@pilarArr
Copy link

I'm having the same problem

@sebakerckhof
Copy link
Collaborator

Can you try again with v4.5.3?

@dhulme
Copy link

dhulme commented Jul 3, 2017

Working for me in v4.5.3, thank you!

@dnish
Copy link
Author

dnish commented Jul 10, 2017

When I try to use the normalize-scss plugin, I still get the same error.

@dnish
Copy link
Author

dnish commented Jul 10, 2017

Oh okay, after installing it, I needed to restart my Meteor app completely. Now it works, thank you very much :)

@pilarArr
Copy link

Not working for me on v4.5.4 but my issue is related more to issue #219 since I'm trying to import a css file. I tried moving the css file to the stylesheets folder and had the same error, but when I changed the extension to css it worked.

@sebakerckhof
Copy link
Collaborator

@pilarArr Yep, that seems to be related to the other issue, so I'll close this one.

@pilarArr
Copy link

Hi @sebakerckhof, the thing is that issue #219 is closed, in there you say that is a duplicate of #195, then issue #195 is also closed, and you point to issue #165 to continue the discussion there, on issue #165 you point to meteor/meteor#6037 which is also closed.

But issue #165 is off topic in the sense that it refers specifically to Meteor 1.3.
I'm using 1.5 and still have this issue. Should I open a new issue?

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

4 participants